Hi Yogesh,
To make several requests without prompting the user for each one, you would store, use, and refresh the access token, of which the oauth_token field is a part.
The
Yahoo! OAuth documentation discussing the auth flow defines the fields in both the request and access tokens, how to get and use them, and how the auth flow works in general.
The PHP SDK handles all this for you, but if you want a deeper understanding, on line 463 of the Yahoo.inc file, you can see the YahooSession class requesting the access token using the fetchAccessToken() method and storing the token as JSON in a cookie. If you wanted to, you could modify or re-purpose the code to store the token in a database or local file.
I hope this helps. Please post back if you have any questions.
Erik
Hello Erik,
Thanks for the reply. According to your post it will always redirect to the login page of yahoo.
I have integrated the Yahoo Social SDK. if you execute the page it always redirect you to the yahoo login window. After logged in i got "oauth_token" in the browser URL.
Can i use this oauth_token n number of times. So let say user have to logged in only once into the yahoo then whenever the user comes next time we will have the last "oauth_token" code with us and will directly get the members information.
Is it possible?
Or
what you can suggest me.
Regards,
Yogesh