iPhone - How to send apprequests using facebook iO

2020-06-21 08:22发布

问题:

i'm working on an iphone app, in which i need to send application request(invitation and app gift) to the users.

In API all the methods and examples are given for FB web apps,i tried to mimic them but they all return null in response.Can some please guide me how to do that using FB iOS sdk.

EDIT

okey, i triend to post using this URL and its sending request to me but not to other users and returning this error : "(#200) All users in param ids must have accepted TOS"

NSString *st = [[NSString alloc]initWithFormat:@"https://graph.facebook.com/me/apprequests?message='TestMessage'&access_token=%@&method=post",accesToken];

So this request increase a count at application bookmark, when would notification triggered ?

Still confused, like okey we can not send request to users who aren't using application, how can we encourage them to use application.

what if i want to send him a gift, and he is not using the application.

Thanks

回答1:

Hey check this post out: http://facebook.stackoverflow.com/questions/7751806/facebook-requests-dialog-frictionless-requests-in-native-ios-app-possible

You can now do a requests dialog by using the dialog "apprequests".



回答2:

The Requests dialog is not currently supported with the iOS SDK as documented in the README documentation

hope this helps