开发者

Post to facebook wall that user installed app

开发者 https://www.devze.com 2023-02-12 22:20 出处:网络
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

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

精彩评论

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