I am developing android application and want to use twitter log in and import contact list from twitter. i am using twitter4j library and i can log into twitter via android app.i want to know how to import contact list from .
You will have all the followers Ids from below api,
https://api.twitter.com/1/followers/ids.json?cursor=-1&screen_name=patel
And than you can get info of all that followers from this api,
https://api.twitter.com/1/users/lookup.json?user_id=401702563,1013369934,....
But, these apis will be deprecated by Twitter from March,2013. Rather this, You can try Twitter api version 1.1.
Refer this link for that.
Related
I have implemented the socialAuth library.But my problem is i cannot retrieve complete profile details.Is there any way to retrieve it?
Now SocialAuth lib is depreciated.You wont get complete profile details because now social media has improved their security.But you can try it by making profile details as public(goto profile setting and make certain detail public like birth date etc)
Instead of socialAuth try official SDk
Today,I use the facebook android sdk to develope app.
I want to get my facebook's the list of videos,but I get it as follow.
https://graph.facebook.com/v2.3/me/videos
{"data":[]}
I find the request command "/{user-id}/videos",but it can't get the useful data.it's empty.I don't know how to solve it.
ps:In my facebook homepage,I have two public videos.
How to get feeds(photos only) of a certain Facebook page via Facebook API for android?
is there a straight forward method for that.
Exactly what I need is an activity that shows feeds of photos from a certain page. that why I think this doesn't require login' in. Can I do that? and HOW?
For a page, whose photos are public you can fetch them without login without any access token, using /PAGEID/photos. For eg: http://graph.facebook.com/cocacola/photos
If you want the public feeds pf a page, you can fetch them too, without the login using the App Access Token, which you can get using the \GET request to :
/oauth/access_token?
client_id={app-id}
&client_secret={app-secret}
&grant_type=client_credentials
and use this token to query the feeds using /PAGEID/feed. For Eg: http://graph.facebook.com/cocacola/feed?access_token=APP_ACCESS_TOKEN
(I think you need the Photos not the Feeds; to which you are saying Feeds of Photos)
If you are new to facebook integration: How to Integrate Facebook Connect with Android
Try using graph api
http://graph.facebook.com/pagename?fields=photos.fields(images)
For more options check the docs
i'm trying make simple app twitter and i use twitter4j library and i got good tutorial how to login and post twitter used that library. my app display timeline and had retweet button, my question how to retweet using twitter4j library?
You can call Status#retweet() or TwitterStream#retweet() with the original tweet id.
You can also use Twitter#retweetStatus(), for example:
Twitter twitter = new TwitterFactory().getInstance();
twitter.retweetStatus(idOfStatusToRetweet);
I am trying for a facebook integration on my android application.
My requirement is to read each news feed as and when it comes, and to display it using a toast.
All the sample application I see on net are based on the web GUI.
Can anyone help me with a sample code or hint to read the updates into a variable/string in my application?
Regards,
Dhanesh
using this after login in facebook dialog..
Facebook fb = new Facebook(APP_ID);
String newsfeed=fb.request("me/home");
System.out.println(newsfeed);
for get user news feed....
I'm guessing it's easiest done using Facebook Android SDK (you need permission for your application to access someone's news feed);
http://developers.facebook.com/docs/guides/mobile/#android
And Graph API documentation is a good read too;
http://developers.facebook.com/docs/reference/api/
Maybe there's some better examples but I found those documents rather complete while I was dealing with Facebook accessing.
Check out the Facebook API at http://developers.facebook.com/
Have you looked at facebook's owns api. Mobile Apps. If they don't have a solution on getting new news, then theres probably no clean api to get news an you have to turn to a scrape api or write your own scrape functions.