Naveeen Kumar
Naveeen Kumar

Reputation: 57

Facebook Messanger Integration

I am working on Facebook messenger integration. When a user presses the reply button in Messenger, it navigates to my app's second screen. After that, when I select another image in the grid view on the main screen and move to the second screen again to send to Messenger, then the reply functionality is not working and it closing the second screen due to MessengerUtils.finishShareToMessenger() with out any warning and error. Reply will be appreciated.

Upvotes: 1

Views: 193

Answers (3)

Ancle
Ancle

Reputation: 465

Probably you have android:launchMode="singleInstance", but

Activities that run with this launch mode don't allow others to start them for a result.

so you need to change your launchMode of activity in AndroidManifest.xml to android:launchMode="standart" or android:launchMode="singleTop"

Similar question

Upvotes: 0

Anish Supertramp
Anish Supertramp

Reputation: 11

MessengerUtils.finishShareToMessenger(ACTIVITY, shareToMessengerParams);

Here, ACTIVITY is the activity that received the original intent from Messenger i.e the first activity in your case.

Upvotes: 1

Surendar D
Surendar D

Reputation: 5644

look at here you might be get some tips. and use socialauth sdk

http://www.3pillarglobal.com/insights/part-1-using-socialauth-to-integrate-facebook-api-in-android

Upvotes: 1

Related Questions