开发者

How can I make a Facebook 'like' button for an iframe Appication?

开发者 https://www.devze.com 2023-01-13 15:44 出处:网络
I\'m t开发者_开发知识库rying to make a like button for my iframe facebook app. With an FBML application, clicking the like button would put \"Pete likes AppName (Application).\" on your wall.

I'm t开发者_开发知识库rying to make a like button for my iframe facebook app.

With an FBML application, clicking the like button would put "Pete likes AppName (Application)." on your wall.

For my iframe app I'm using the following FBML:

<fb:like href="http://apps.facebook.com/appname/"></fb:like>

However Facebook changes the hyperlink to the iframe's domain: http://mydomain.com/app/

Which puts the following on my wall: "Pete likes App Name on mydomain.com" and the link follows through to http://mydomain.com/app/

How can I make a like button which works the same as an FBML application?


The application's profile is what is "like-able".

i.e., this URL: http://www.facebook.com/apps/application.php?id=YOUR_APP_ID

0

精彩评论

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

关注公众号