简体   繁体   中英

Facebook SDK AppRequest behavior

So I'm using this code:

FB.AppRequest(
        "Catch diamond !",
        OGActionType.SEND,
        "1126946003993454",
        null,
        null,
        "Send a diamond !",
        FriendRequestCallBack);

And on device ( Android 5.0.2 ) it works fine, when I click on button dialog appears and I can choose friend from list, my friend recieves notification on Facebook app, but when he click on notification he receive an error "This topic is empty" with description "Page can not be displayed at this time. This could be a temporary problem, damaged or expired link or not authorized access." I don't know how to deal with this problem, and i don't know what my friend should see after click on notification, because I'm using AppRequest for the first time. Can someone explain this to me ? My app isn't published yet on Google Play Store, but is public on Facebook.

I was using this tutorial.

Thanks.

edit: Added link.

I am not an expert on Facebook SDK for Unity, but I did some apps using it. After reading the Facebook documentation I got this:

public static void AppRequest( string message, OGActionType actionType, string objectId, IEnumerable to, string data = "", string title = "",
FacebookDelegate callback = null )

Read the "Handling Requests In-game" from here . You forgot to handle the app request in the game.

Hope that helps.

Thanks.

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