java - Integrating web app with facebook events api -
hi have web app user creates event. java/j2ee based web application , have used mysql 5.1 @ end. once user creates event on web app, event information when,where,start-time,end-time etc should transferred user's facebook profile , should le invite attendees via fb. there library readily available or should dirt hands coding. have used jquery , javascript, if there jquery or js library available please let me out
to accomplish need 2 things:
- authenticate user app build using facebook platform
- use access token retrieve after authenticating them publish event on facebook
step 1 can done in number of ways, explained on authentication docs, considering familiar javascript, should use facebook javascript sdk this, in particular fb.login method. 'scope' (or permissions) need request step 2 are: user_events , publish_stream
once have access token user after step 1, can proceed publish event on behalf using graph api. simple. again, using javascript sdk make call similar to:
fb.api('/me/events', 'post', { params }, function(response) { handle response });
using parameters outlined here: http://developers.facebook.com/docs/reference/api/user/#events
Comments
Post a Comment