how to get facebook news feed on android with phonegap? - android

I've been playing with phonegap's android facebook plugin. The hackbook example did not specify how to get news feed for a user from facebook. Is there an API for doing this? I've done extensive search in stackoverflow but did not get any answers.
https://github.com/davejohnson/phonegap-plugin-facebook-connect

The API endpoint for the user's news feed is me/home. Make sure you have the extended permission read_stream.
https://developers.facebook.com/tools/explorer/?method=GET&path=me%2Fhome

Could you use the plugin for authentication, then the normal Facebook JavaScript SDK for your requests?

Related

Azure AD Graph API - Getting token on iOS/Android

I was already able to access the Graph API using a .NET native client. So this means that the end-user is redirected to a dialog page that requires him to sign-in, and then I get an access Token which allows me to query the Graph.
Meanwhile I'm trying to implement the same on iOS and Android. I do find information saying that's possible, but I cannot find any sample code or documentation on how to do it.
Any help would be greatly appreciated.
for acquiring the token, have you checked out the Azure AD code samples page ? There are iOS and Android samples that demonstrate ADAL/OAuth.
OK I was able to get it working following the below samples:
Android https://github.com/AzureAD/azure-activedirectory-library-for-android
Objective C https://cocoapods.org/?q=on%3Aios%20adal

Facebook Group chat in Android App

I am new to Android and i am trying for below concept and let me know anyone how to achieve this one.
I am log in using facebook in my app and after i need to start fb group chat from there. is it possible and how? Thanks in Advance
First of all you should be clear that you should use Facebook SDK for using FB related services in your android application.
Facebook group chat is currently not available in facebook SDK. See this post:
is group chat for facebook implemented in the API?
So you can use facebook for logging in and implement the chatting system yourself by creating backend server. This would be difficult obviously that using the SDK.
Good Luck!

How to show post using native Facebook app on android after fetching post ID?

I'm trying to develop an Android app which interacts with Facebook using Graph API.
My plan is to display the original post on native Facebook app after getting the post ID.
I tried passing the URL www.facebook.com/[post_id] to browser and successfully displayed the post.
Is there any way to do this with the native Facebook app? I have tried using fb://posts/[post_id] and fb://[post_id] but both didn't work.
Any comment is appreciated :)

Phonegap twitter plugin for Android

I want to integrate twitter having compose tweet feature in my application using Phonegap.I am following https://github.com/ObjetDirect/phonegap-plugins/blob/master/Android/Twitter/www. Now in readme file they have given the instructions, for compose tweet how can I modify my index.html page? Please help me..
You can implement it using the concept of childbrowser. I have done this. Use the link: https://github.com/phonegap/phonegap-plugins/tree/master/Android/ChildBrowser.
Please take a look at this example of how to retrieve messages, photos, names... from twitter using javascript.
I've made it and with the help of CSS was fantastic!
http://wiki.phonegap.com/w/page/42450600/PhoneGap%20Ajax%20Sample
I think my tutorial describes what you want to do. See TMT5P1.
Requires Child Browser plugin (no Twitter plugin needed) to do OAuth 1.0a Twitter login. Video demo on PhoneGap / Android plugins.
In TMT5P1 user logs in to their twitter account from your phonegap app, gives permission to the app to access their twitter account, after which all Twitter APIs are available via javascript in your app. Includes composing and sending a tweet.

Sending tweet on twitter using as3 without navigating to url

I need to tweet on twitter some specific message. I need to do that for iphone and andorid using as3. While searching, I got a solution to navigateToUrl (to url 'http://twitter.com/home?status=message') and post, its working but it remains to the account of the user. I searched some apis also but didnt find any useful way to sending a tweet from a as3 flash app. Can any one please help me??
You can do this by using URLRequests to hit the twitter API after logging in with oAuth. There are also a couple of libs available to you for doing this.
http://wiki.swfjunkie.com/tweetr
You can use ExternalInterface with javascript to send tweets.
See here.
And here.

Categories

Resources