Facebook Application request
I want to give Application request to the list of user from my android application.
The main thing is "The App request must not go to wall , it 开发者_运维技巧must go to user's inbox or App request list"
is there any way using graph api or facebook api.
You would need to embed the Facebook Requests dialog into a web view. There isn't a graph api method for sending app invites.
Now they have added the Requests dialog api for android too. Check out the facebook android sdk documentation! https://developers.facebook.com/docs/mobile/android/build/
You must create a Dialog using WebDialog.RequestsDialogBuilder, also the most important thing is to set the method for apprequests:
Bundle parameters = new Bundle();
params.putString("method", "apprequests");
WebDialog.RequestsDialogBuilder req = new WebDialog.RequestsDialogBuilder(this, mSession, parameters);
req.setMessage("Your message");
req.setTitle("Title for the web dialog");
req.build().show();
You can find more explanations here
精彩评论