I am trying to use Facebook's Graph API to get nearby places but when I try https://graph.facebook.com/search?type=place¢er=37.76,122.427&distance=1000 , I get an authentication error. I registered my mobile application on Facebook but I am not sure how to authorize it so that I can search. How can I do this?
You need to add the access_token to the GET params you're sending. Also, you can add a q='query' param to search for an exact term like airport or cafe...
https://graph.facebook.com/search?type=place¢er=37.76,122.427&distance=1000&access_token=2227470867|2.BsVGGHo_rW5YzHPWjk4UMw__.3600.1304935200.0-100001037215362|5jSEZH-iCmFUB7A8myjG98IZVVQ
Related
I am trying to call following Twitter's API to get a list of followers for a user.
http://api.twitter.com/1.1/followers/ids.json?cursor=-1&screen_name=username
And I am getting this error message in response.
{
code = 215;
message = "Bad Authentication data";
}
I can't seem to find the documentation related to this error code. Anyone has any idea about this error?
Your request lacks authentication data. I got that error when I simply clicked on http://api.twitter.com/1.1/followers/ids.json?cursor=-1&screen_name=username. This is not the way to access twitter API.
Create a Twitter app from https://apps.twitter.com/. Then, try using a Twitter API Library to access REST API. If you are comfortable with using ruby apps on command line interface check out https://github.com/sferik/t. Set it up and then try t followers [USER] for listing all followers of USER.
You will have to use OAuth. More info can be found on Twitter website. Here: https://dev.twitter.com/oauth
This error is coming because your Twitter developers account is not approved. Now-a-days you can't make app without getting your developers account approved from Twitter.
To make an app, you need to contact Twitter and apply for developers account. If you are lucky engough, you will get approval although this process may take months.
If you just need the data, go for third party services like followersanalysis[dot]com, birdsonganalytics[dot]com
I want to get the timeline post of the other user using weibo api but not getting.weibo API. I am using few API Call like user_timeline,trends but not getting any proper data. please, let me know if I missing any API or any settings in App. I have appKey, secret key and redirect url.
As far as I can tell, the API calls that would get you this info have all been restricted. The English documentation is not updated, but the chinese documentation specifies for example that you can only use User_timeline to get your own timeline, not others.
http://open.weibo.com/wiki/2/statuses/user_timeline
接口升级后:uid与screen_name只能为当前授权用户
I am using graph api for getting user_intrests field. But it is returning blank everytime.
You should use /user/interests API endpoint instead of user_intrests.
N.B. user_interests permission is required to return interests
The scenario is I want to post some details on a facebook page created by me from my other app. So want to know how can we give access to app through access token means how can we get the access token for this?
Thank You
Regards
Yes, take a look at the following URL and the "Page Access Tokens" section for information on how to do obtain a token.
API - Obtain Page Token
Note, however, that there is a known issue when trying to use the links api point, if you intend to define your own link in the post.
Bug report
You'll probably want to use the feed API point instead. I've not actually managed to get this working yet though, and I'm awaiting feedback from FB themselves. I'll update you if/when I hear something useful back.
Good luck.
You can get the access_token for you page by enabling the manage_pages permission, and then calling the API endpoint: /me/accounts to get the access_token for all the pages you manage.
You can then use this access token to post to your page using the Graph API call: /{page_id}/feed
I am new to twitter API. Is there any way that i can get number of retweet of any URL.
I want to calculate it without any login into twitter.
This will return a simple json with a count property of re-tweets for a specific URL
http://urls.api.twitter.com/1/urls/count.json?url=SOME_URL_HERE
Example:
API CALL:
http://urls.api.twitter.com/1/urls/count.json?url=http://techcrunch.com/2011/07/05/kissmetrics-now-lets-sites-analyze-their-users-browsing-habits-%E2%80%94%C2%A0before-they-even-sign-up/
JSON RESPONSE:
{"count":235,"url":"http://techcrunch.com/2011/07/05/kissmetrics-now-lets-sites-analyze-their-users-browsing-habits-%E2%80%94%C2%A0before-they-even-sign-up/"}
What do you want to calculate? How effective your marketing strategy is?
This is not possible via twitter.
Of course you can do: use the search API via link:yourlink or you could use bit.ly and their statistics to see who tweeted about destinct urls. Another solution could be http://jetwick.com which is open source now