简体   繁体   中英

Facebook Graph API - Tag Photo

I am trying to tag a photo using /{photo-id}/tags . These are the parameters I am sending:

{
    tags = "[{'tag_uid': 'FRIENDS_ID', 'x':1, 'y':1}]";
}

This works fine if i use my App-Scoped ID, but it doesn't work with my regular ID.

This is the error that i am receiving ("(#100) The global X id is not allowed for this call"): 在此处输入图片说明

So, it does work with my App-Scoped ID, retrieved using /me , but it doesn't work with any other regular ID, neither mine or of my friends.

Do any of you have ideas of what's causing this?

As I already commented, you can only use App Scoped IDs in Apps, and those are only unique in your own App. You can only match them with another App you own, by using the Business Mapping API .

For tagging, you should use taggable_friends : https://developers.facebook.com/docs/graph-api/reference/v2.1/user/taggable_friends

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