Searching for a user's posts in facebook groups. I am a newby on web programming, and I am trying to programatically get hold of all my posts in various groups. I am using plain HTTP queries, and also the graph api.
Using plain HTTP present a problem as I seem to have to phrase the query differently with some groups, and am even required to log in for some.
Using the graph api seems very limited since V2.8 only is allowed with new apps, and most of the functionality I need is only available in lower (V2.3) versions. And also I am NOT admin in any of the groups.
Related
I'm using Facebook graph Api to search users and data that i get is kinda different from that i get from Facebook UI. For example search response of User interface is friends, mutual friends and other related data in first. How can i query to get related data for current user ( i.e friends and mutual friends in first place).
Here is query that i'm using to search users.
https://graph.facebook.com/v2.5/search?fields=id,name,picture.type(normal)&limit=50&q={q}&type=user&access_token={token}
and data that i get is kinda different from that i get from Facebook UI
That’s because those are two completely different things.
The search functionality offered via the UI is called Graph Search. But the powerful possibilities that offers are not exposed via API. (To protect user privacy, and keep apps from doing extended user profiling via that data.)
Searching via API is limited to what is listed here: https://developers.facebook.com/docs/graph-api/using-graph-api/#search
That’s not much – but it’s all you get.
I'm using Facebook graph Api to search users and data that i get is kinda different from that i get from Facebook UI. For example search response of User interface is friends, mutual friends and other related data in first. How can i query to get related data for current user ( i.e friends and mutual friends in first place).
Here is query that i'm using to search users.
https://graph.facebook.com/v2.5/search?fields=id,name,picture.type(normal)&limit=50&q={q}&type=user&access_token={token}
and data that i get is kinda different from that i get from Facebook UI
That’s because those are two completely different things.
The search functionality offered via the UI is called Graph Search. But the powerful possibilities that offers are not exposed via API. (To protect user privacy, and keep apps from doing extended user profiling via that data.)
Searching via API is limited to what is listed here: https://developers.facebook.com/docs/graph-api/using-graph-api/#search
That’s not much – but it’s all you get.
I am in the process of upgrading my apps to Graph API v2.0.
It seems that I cannot use Facebook universal IDs anymore. But the issue is that I have multiple games and users can play them all with the same account, so they can have their balance and level across all games.
I am worried about the new API as it seems that this will not be possible anymore. Is there any way to do this without the Facebook ID?
Have a look at the Business Mapping API at
https://developers.facebook.com/docs/apps/for-business
For convenience, probably the best option would be to use the token_for_business field in the User object.
I'm trying to fetch the endpoint /me/home from the Facebook graph API v2.1.
Using the Graph API Explorer tool, I get good results that look like what the facebook mobile app displays. But when I switch to my app and simulate the exact same call with the exact same permissions, the results are different and include a lot of non relevant posts (such as "ARandomFriend liked a link").
The only difference beetween the two calls is the access token (same scope, same permissions, same user). My guess is that facebook voluntarily returns a less relevant feed to third party apps so that people can't build apps that can compete with them.
But maybe I'm wrong, does anyone know something about this ?
This is similar to
Some posts not visible on the feed through Graph API /me/home
and
Facebook SDK for .NET and Graph API Explorer news feed mismatch
The reason is Facebook "scores" nodes to derive the most "Top Story". Low scoring nodes are by default not visible. You can force all nodes with
/me/home.filter(owner)<some_filters like fields requests>
There is no documentation on WHY this actually works, but it does. You can also force all nodes that are Likes or Comments by doing the following
me/posts?fields=likes.filter(stream),comments.filter(stream)
I am an intermediate level programmer with almost no web experience. I have an idea for an iPhone app and am trying to figure out if it is a feasible project to pursue.
I am thinking of building an application that groups certain specific twitter feeds together into an app. I am wondering if anyone has done this before, and if it is possible to use the twitter API to retrieve specific tweets without having a user have to log in.
The user will not be replying to or responding in any way to the links, rather just opening the links.
Thanks.
Jamie
Any public twitter feeds can be retrieved without a user authorizing their account. However you can usually only get a certain amount of tweets into the past. For instance this returns info about a user and their most recent tweets, just replace "screen_name=" with whatever name you are looking for
http://api.twitter.com/1/statuses/user_timeline.xml?screen_name=jsh2134
More can be found at the Twitter API documentation.