I need to fetch content(posts) of a facebook public page in my rails application.
And we dont provide FB login functionality. How this can be achieved from server side, any approach for implementing this with Koala.
You will need an access token for that. Take a look at this and this.
Related
Can someone point me in the right direction on how I could go about writing a piece of code for react native that takes an input from the user (username and password) and then logins into a website with in.
Also any react native web scraping libraries anyone could recommend (I was thinking about using Cheerio)
Thanks in Advance :)
For getting user inputtext check:
https://facebook.github.io/react-native/docs/textinput
https://www.tutorialspoint.com/react_native/react_native_text_input.htm
From now on what i'm saying works in restful APIs and you may need to change your approach based on your need.
In my case being logged in means having a valid token from server.
For sending requests use axios. Get your user input values and make a post request to login api. If credentials were valid response will contain a token. Save that token in your app using Asyncstorage.
For logging out delete that token from storage.
Is there a tutorial or example that demonstrates how Social Media Login handling is done in MVVM Cross? For example logging in a user on Facebook and Android.
I have a rough idea of the approach I should take, ie, the MVVM Cross(MX) approach but if there is a tutorial or example it would be really useful.
My approach is to:
Use Xamarin.Auth to log the user into Social Media businesses (Facebook and Google Plus)
Use Xamarin.Auth to create a token to record that the user is logged in (Save the account status)
Create a CustomAppStart class that inherits from IMvxAppStart. This class will validate user credentials. Is this validation performed at app start or on each page/screen show?
Inside the above class use Mvx.Resolve<IAuth> to validate users. Can/does Mvx.Resolve<IAuth> work with Xamarin.Auth?
Is the above approach the MVVM Cross way of doing it? Is there a MVVM Cross class/method that would help me with user login, authentication, etc. that I dont know about?
I am trying to use Flickr API via Objective-C. Can I get a user-related information like shared pictures just using login and password that user has used to register in Flickr? Or the user needs to get key/secret pair bound to a particular application?
I've seen some of the Flickr tutorials out there, but I believe you need an api token from Flickr to pull in the image feed.
Here is the tutorial I used, which also contains links to get your api key.
iPhone JSON Flickr Tutorial Pt 1
The framework 'ObjectiveFlickr' is by far the best tool for the job here:
https://github.com/lukhnos/objectiveflickr
I've used it in heaps of projects.
It'll manage all your API authentication and requests.
No, you can't just use a username and password to access private information. Yahoo/Flickr use OAuth which is a bit more involved. There are also a few open source Flickr API frameworks that should do a lot of the work for you. (I've not used any myself, hence the lack of a recommendation.)
Any idea about how to post on our Google+ Stream using javascript or json?
I'm not searching how to use the google+ button, I need to post on the wall(or stream)
The (recently announced) Google+ API currently provides read-only access to public data. All API calls require either an OAuth 2.0 token or an API key.
Here's some information to help you get started.
http://googleplusplatform.blogspot.com/2011/09/getting-started-on-google-api.html
http://developers.google.com/+/
These two urls do what you want, but need a confirmation from the user:
https://m.google.com/app/plus/x/?v=compose&content=YOUR_TEXT
https://plus.google.com/share?url=YOUR_URL_HERE
No public API is available, so just register for the private API and check for yourself
https://services.google.com/fb/forms/plusdevelopers/
EDIT: The API is available now:
https://developers.google.com/+/
That's the downside of the Google Plus...
See here: http://code.google.com/p/google-plus-platform/issues/detail?id=41
i have authenticated user with Twiter .which return user detail's
But i want to posttoTwitter with just username or id in offline mode.
Can any help me in this :)
It is not possible to post to Twitter with only their username.
From an API pserspective, it's not even possible to post to Twitter if you have their username AND their password. API applications that want to communicate with Twitter need to use Twitter's implementation of OAuth.
A good starting point is the Twitter OAuth FAQ. Or, you could use a library that someone else has written to do the heavy lifting for you.