简体   繁体   中英

Need to create a POST Facebook check in

I'd like to create a link or button on my website for a user to click on, that will check them into a place on Facebook.

I'd like to have the code be flexible so I may change the place name within the code (and re-use the code for checkins at different locations within the site)

I tried to create this via the Graph API using POST with LOCATION attached but was unsuccessful.

According to https://developers.facebook.com/docs/graph-api/reference/v2.0/user/tagged_places/#publish you need to publish a Post via /{user-id}/feed

See https://developers.facebook.com/docs/graph-api/reference/v2.0/user/feed/#publish You need a specific place_id to do this, and the read_stream permission in the User Access Token.

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