开发者

Post to facebook wall that user installed app

Sometimes when an app utilizing Facebook is installed, a post saying "U开发者_如何学JAVAser has installed the MyAppName for iPhone App" is posted to the user's wall. How is this achieved please?


Use the javascript method of publish stream.

 FB.ui({
    method: 'stream.publish',
    message:'hello',
    attachment: {
      name: title,

      caption: "I'm running!",
      media: [{
        type: 'image',
        href: 'http://www.yoursite.com/',
        src: 'http://www.yoursite.com/images/working.jpeg'
      }]
    },
    action_links: [{
      text: 'Get your percentage',
      href: 'http://www.yoursite/'
    }],
    user_message_prompt: 'Tell your friends about your application:'
  });

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜