SLComposeViewController Facebook将iOS发布为iOS,而不是Facebook应用程序标识符 [英] SLComposeViewController Facebook posts as iOS instead of Facebook Application Identifier

查看:82
本文介绍了SLComposeViewController Facebook将iOS发布为iOS,而不是Facebook应用程序标识符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在研究为将来的iOS游戏添加Facebook社交功能的原型.我一直在研究的功能之一是使用新的本机Facebook Composer发布到游戏的链接,然后跟踪该帖子并为喜欢该帖子的每个人提供玩家硬币.发布后,我得到了他们的提要,并查找具有匹配的应用程序ID的发布.如果我不使用新的本机Facebook Composer(旧样式对话框,或者只是没有对话框的直接发布),我已经使该部分正常工作.

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).

我遇到的问题是使用新的SLComposeViewController时,该帖子似乎来自应用程序"iOS",ID为"213546525407071",而不是我的应用程序的ID.

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.

是否可以更改属性应用程序,使其使用我的应用程序ID而不是iOS?

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

推荐答案

这就是SLComposeViewController的工作方式.如果要指定自己的应用程序,则必须设计自己的UI并使用Facebook SDK中的FBRequestConnection,如

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.

这篇关于SLComposeViewController Facebook将iOS发布为iOS,而不是Facebook应用程序标识符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆