D
D
dmitriy_ned2014-03-07 15:37:22
PHP
dmitriy_ned, 2014-03-07 15:37:22

Facebook Graph - how to search for public photos using a hashtag?

I am working with Facebook API SDK. Trying to get all public photos with

https://graph.facebook.com/search?access_token=xxxx|xxxxx&q=%23hashtag&type=post

Problem: the result contains only shared photos in the first account + if you post a photo - but do not click "share", the photo does not appear in the search results (although if you use the search bar of the facebook itself - everything works like clockwork)
I also have another account , where I also added a photo and shared it - the photo does not appear in the search results.
Lyrical digression: Several days of unsuccessful testing have shown that graph search works on the verge of fantasy.
Does anyone know how I can get all public photos tagged with a hashtag using FQL or Facebook Graph?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dmitriy_ned, 2014-03-13
@dmitriy_ned

After talking with the developers of Facebook, I received an 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

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question