[英]How to display custom objects in facebook open graph stories for iOS?
I'm working on a project, where I'm posting custom stories on user's facebook timeline once they request a song from my app. 我正在做一个项目,当用户从我的应用程序请求播放歌曲时,我会在该项目上将自定义故事发布在用户的Facebook时间轴上。 I created an OG story on facebook developers portal.
我在Facebook开发人员门户上创建了一个OG故事。 The story would look similar to,
这个故事看起来类似于
'Kevin requested a song using myAppName' “凯文使用myAppName请求了一首歌”
I integrated the code and it gets posted on the wall. 我集成了代码,并将其张贴在墙上。 Works fine.
工作正常。 Now I face two issues in the process.
现在,我在此过程中面临两个问题。
'Kevin requested the song never say never using myAppName' 凯文(Kevin)要求这首歌永远不要说永远不要使用myAppName'
Ideas are appreciated. 想法被赞赏。
1. For posting a story you need to setup object and action first. 1.要发布故事,您需要首先设置对象和动作。 In your case you have set Requested as action and Song as Object.
在您的情况下,您已将Requested设置为action并将Song设置为Object。 Right?
对?
Now for every Song you need to setup an object with its own properties if you want to display it in post. 现在,对于每首歌曲 ,如果要在后期显示它,则需要设置一个具有其自身属性的对象。
@"og:title": @"Sample Song"
. @"og:title": @"Sample Song"
。 Here you can set your song title. [action setString:@"http://samples.ogp.me/677267592407093" forKey:@"level"];
[action setString:@"http://samples.ogp.me/677267592407093" forKey:@"level"];
2. Before you can publish stories for people using your app, you'll have to submit them for review . 2.在使用您的应用为他人发布故事之前,您必须将其提交进行审查 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.