Ricky Lee
Ricky Lee

Reputation: 41

iOS Facebook api, apprequests sent but not receiving?

I'm currently working on an iOS app, and I use apprequests to bring up the dialog to send request. I can see everything working fine (I got the dialog complete thing) but user is not getting the request! I'm working with a test FB app (not public), I'm thinking if there's something I'm missing on setting up the FB app? Or is there a specify permission I have to enable?

Here is a little piece of my code:

-(void)appRequestsWithMessage:(NSString )message {
NSMutableDictionary params = [NSMutableDictionary dictionaryWithObjectsAndKeys: message, @"message", nil];
    [facebook dialog:@"apprequests"
       andParams:params
     andDelegate:self];
}

Upvotes: 4

Views: 2690

Answers (2)

Raptor
Raptor

Reputation: 54258

To allow App Requests to be shown in Facebook, you have to enable "App on Facebook" in Apps Settings and supply a "Canvas URL" and a "Secured Canvas URL".

Upvotes: 1

Mads Foli Bjerre
Mads Foli Bjerre

Reputation: 115

Have you added the receiving user as a tester on your Facebook app admin page? As long as you're in sandbox mode, only users added as testers (or any other position) can see, interact with and receive requests from our app.

Check the settings page for your app.

Upvotes: 0

Related Questions