Android SDK Version


public final class MessengerThreadParams
Parameters describing the Intent that Messenger sent to the app. Returned by MessengerUtils.getMessengerThreadParamsForIntent.
Nested Class Summary
Modifier and TypeClassDescription
public enumMessengerThreadParams.Origin
The origin of the flow that user originated from.
Field Summary
Modifier and TypeFieldDescription
private final MessengerThreadParams.Originorigin
private final StringthreadToken
private final Stringmetadata
private final List<String>participants
Constructor Summary
ConstructorDescription
MessengerThreadParams(MessengerThreadParams.Origin origin, String threadToken, String metadata, List<String> participants)
Method Summary
Modifier and TypeMethodDescription
final MessengerThreadParams.OrigingetOrigin() The origin of the flow that the user originated from.
final StringgetThreadToken() A token representing the thread the user originated from.
final StringgetMetadata() Metadata that originated from content the app originally set when it sent the request to Messenger.
final List<String>getParticipants() The list of participants in the thread represented as App-scoped User IDs.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Constructor Detail

MessengerThreadParams

MessengerThreadParams(MessengerThreadParams.Origin origin, String threadToken, String metadata, List<String> participants)
Method Detail

getOrigin

 final MessengerThreadParams.OrigingetOrigin()
The origin of the flow that the user originated from.

getThreadToken

 final StringgetThreadToken()
A token representing the thread the user originated from. This is an opaque value that is not meant for the app to consume. It exists to complete the flow back to Messenger.

getMetadata

 final StringgetMetadata()
Metadata that originated from content the app originally set when it sent the request to Messenger.

getParticipants

 final List<String> getParticipants()
The list of participants in the thread represented as App-scoped User IDs. This may not always be set and will only ever be set for apps that include Facebook login. When set, it will only include the participants in the thread that have logged into the app. See docs for more info.