-
public final class MessengerThreadParams
Parameters describing the Intent that Messenger sent to the app. Returned by MessengerUtils.getMessengerThreadParamsForIntent.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enum
MessengerThreadParams.Origin
The origin of the flow that user originated from.
-
Field Summary
Fields Modifier and Type Field Description private final MessengerThreadParams.Origin
origin
private final String
threadToken
private final String
metadata
private final List<String>
participants
-
Constructor Summary
Constructors Constructor Description MessengerThreadParams(MessengerThreadParams.Origin origin, String threadToken, String metadata, List<String> participants)
-
Method Summary
Modifier and Type Method Description final MessengerThreadParams.Origin
getOrigin()
The origin of the flow that the user originated from. final String
getThreadToken()
A token representing the thread the user originated from. final String
getMetadata()
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. -
-
Constructor Detail
-
MessengerThreadParams
MessengerThreadParams(MessengerThreadParams.Origin origin, String threadToken, String metadata, List<String> participants)
-
-
Method Detail
-
getOrigin
final MessengerThreadParams.Origin getOrigin()
The origin of the flow that the user originated from.
-
getThreadToken
final String getThreadToken()
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 String getMetadata()
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.
-
-
-
-