Request ID is not available when App Launches after clicking Facebook notification

自古美人都是妖i 提交于 2019-12-19 11:32:13

问题


A Facebook app is setup with iOS native app enabled with bundle id and App Store Id of another app.

Following are possible in the current scenario.

1.Sending an app request to a friend, 2.The request badge appears in the friend's Facebook, 3. And clicking on the request launches my app.

This was the link i referred to implement this. https://developers.facebook.com/docs/howtos/send-requests-using-ios-sdk/#protip3

I am supposed to get a NSURL from these functions

– application:openURL:sourceApplication:annotation:
       OR
– application:handleOpenURL:   

and the expected format is as follows.

fb[APP_ID]://authorize#expires_in=[ACCESS_TOKEN_EXPIRATION]
&access_token=[USER_ACCESS_TOKEN]
&target_url=https://apps.facebook.com/[APP_NAME_SPACE]/?request_ids=
[COMMA_SEPARATED_REQUESTIDs]&ref=notif&app_request_type=user_to_user

Here the request_ids contains The id of app request send, and which can be used to get the data attached to the App Request.

Now my issue is that, I am not getting the NSURL in expected form, instead I get the following format. So I am unable to find or use the request_ids.

fb[APP_ID]://authorize#expires_in=[ACCESS_TOKEN_EXPIRATION]
&access_token=[USER_ACCESS_TOKEN]
&target_url=https://apps.facebook.com/application.php?id=442634372448098

来源:https://stackoverflow.com/questions/12853431/request-id-is-not-available-when-app-launches-after-clicking-facebook-notificati

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!