简体   繁体   中英

facebook api post on timeline via ajax

hi and happy new year guys,

I would like to ask if its possible to post/publish a message via timeline using ajax or jquery-ajax?

currently my script is functionality/process like this one.... first user login which it will automatically add a cookie or site session mark as login. Also note I didn't store the facebook access token via db or cookie.

my question are 1. if I store the session of facebook how much time is the expiration time of the session token? 2. is there a way even I didn't add a facebook session when posting via AJAX? 3. is there a possibility I can post using ajax? if yes can you give me some link or tutorial on how to make this part.

TIA

1) thats up to you, you're storing it.

2) Not sure what that means.

3) Really, you shouldn't use ajax calls across domains, but you can if you hack around it.

Here's an example

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM