简体   繁体   中英

facebook dialog not sending request to friend

I am trying to use the facebook dialog to send request to my friend using the following:

NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
                               @"Come check out my app.",  @"message",
                               nil];

    [facebook dialog:@"apprequests"
                  andParams:params
                andDelegate:self];

the delegate - (void)dialogDidComplete:(FBDialog *)dialog { was triggered but apparently I dont see anything on my friends account. I've added him as a tester of the app through the developer account. Why is this?

From https://developers.facebook.com/docs/requests/ :

User to User Requests are only available for Canvas apps, not websites, as accepting a request will direct the user to the Canvas Page URL of the app that sent the Request.

  1. Do you have a canvas url specified in your app settings?

  2. Also what does the response look like from Facebook at the completion of the dialog? It should look like:

    { request: 'REQUEST_OBJECT_ID' to:[array of USER_IDs] }

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM