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:' });
精彩评论