简体   繁体   中英

Facebook search public photos by hashtag

I work with Facebook API SDK. I'm trying to get all public photos using https://graph.facebook.com/search?access_token=xxxx|xxxxx&q=%23hashtag&type=post

But I have a problem: result contains only shared photos in first account. When i'm posting photo without share, search not found it.

Otherwise, I have another account where I'm posted photo and share it, but photo is not found too.

Who knows, how can I get all public photos with hastag using FQL or graph search

Addition:

Few days ago - facebook search is not working

After discussing with facebook developers, I got the answer:

Facebook API does not support searching for hashtags.

%23 is just the URL encoded version of a # which gets decoded on a server generally so it still won't work. For example if I wanted to search for #YOLO I would just say q=YOLO with no # or it's URL encoded form.

It's just something that the api doesn't support at the moment

Facebook has officially deprecated the post search type. Im not sure when exactly but I can tell you I tried today (10/15/2014) and its a no go.

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