Android SDK Version
  • java.lang.Object
    • com.facebook.messenger.MessengerThreadParams

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

origin

public final MessengerThreadParams.Origin origin
The origin of the flow that the user originated from.

threadToken

public final java.lang.String threadToken
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.

metadata

public final java.lang.String metadata
Metadata that originated from content the app originally set when it sent the request to Messenger.

participants

public final java.util.List<java.lang.String> participants
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.
Constructor Detail

MessengerThreadParams

public MessengerThreadParams(MessengerThreadParams.Origin origin,
                             java.lang.String threadToken,
                             java.lang.String metadata,
                             java.util.List<java.lang.String> participants)