SLComposeViewController Facebook posts as iOS instead of Facebook Application Identifier

两盒软妹~` 提交于 2019-12-24 05:52:47

问题


I'm currently working on a prototype for adding Facebook social features for future iOS games. One of the features I've been working on involves using the new native Facebook Composer to post to a link to the game, and then tracking the post and giving the player coins for every person who likes the post. After the post, I get their feed and look for a post with a matching application ID. I've already got that part working correctly if I don't use the new native Facebook Composer (either old style dialogs, or just a direct post with no dialog).

The problem I'm encountering is when using the new SLComposeViewController, the post will appear to come from the application "iOS" id "213546525407071" rather than the id for my application.

Is there a way to change the attributed application so that it uses my application ID instead of iOS?


回答1:


That's how SLComposeViewController works. If you want your own app designated, you have to design your own UI and use FBRequestConnection from the Facebook SDK as discussed here.



来源:https://stackoverflow.com/questions/13094661/slcomposeviewcontroller-facebook-posts-as-ios-instead-of-facebook-application-id

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