Jump to content

social networking sites data + database storage


icode919

Recommended Posts

hello guys,

             i am not an expert to PHP, but still..

 

Well, i want to know how to fetch public available data from social network sites like: facebook, twitter, google+ etc.

 

with help of cookies and then save them same time to database.....

 

is it possible ?

 

and if YES ! Then please guide me up.

 

Thanks a lot..    :)

Link to comment
Share on other sites

Indeed. Those API's also have documentation.

 

The reason your question hasn't had a look in is because you have obviously made little effort to research the topic yourself.

 

You need to be specific about where it is exactly you are stuck.

Link to comment
Share on other sites

ok.. let me describe more..

 

i have read nearly lot how to get details from social network sites using there API's.

 

but i don't understand how to save them to db.. got me ? i can get data if i only wanna see... but i wanna store them to db once my cookie fetch any data on the device.

 

now is that better explanation ? :)

Link to comment
Share on other sites

Where are you getting the term "cookie data" from? It doesn't really make any sense in the context of this topic.

 

Anyway, do you know how to connect to and query a database? All you need do is execute an INSERT statement that stores the data you have.

 

What format is your data in?

Link to comment
Share on other sites

data will be in format like:

 

https://graph.facebook.com/userid

  "id": "100000028881959",   "name": "username",   "first_name": "name",   "last_name": "last",   "link": "https://www.facebook.com/uid",   "username": "uid",   "gender": "male",   "locale": "en_US"

then similar for Twitter / Google+

 

that is the cookie data i am talking about..

never had experienced with storing cookie data to database.. :(

Edited by icode919
Link to comment
Share on other sites

The data you have has nothing at all to do with cookies.

 

Anyway, I would suggest making a table that replicates this structure. From there it would be simple to write an INSERT query to store your data.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.