简体   繁体   中英

Like button that opens Facebook app

I know it is not possible to directly like something through any Facebook API, but since I can create a like-button on my website that the user can click, is it possible to create a like button that likes a page through the iOS facebook App?

I know you can include the functionality to like using the facebook app if you are developing iOS apps, but is it possible (using javascript?) to make a "like" button that likes through the facebook app, instead of through the browser?

It is not possible to force a like trough the facebook app, it still needs a second interaction of the user (a press on the like button).

A workaround would be to let the user like your page trough the webbrowser and after the like has been processed you redirect the user to the facebook app.

Read more about the events of a like button here: https://developers.facebook.com/docs/reference/javascript/FB.Event.subscribe/v2.4

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM