facebook graph api - How to get the sending user's id from the callback page with fb-request-form? -
im sending invitation requests via request-form application , want sending users id action page. can ids invitations sent not sure how senders id.
im using php. part of callback page:
if (isset($_request['ids'])){ $amount = sizeof($_request['ids']); print_r($_request); echo "<br>$amount invitations sent"; }
the request prints out this:
array ( [mfs_typeahead_req_form_4cf74f96db3688507476560] => start typing name [ids] => array ( [0] => 510149460 ) [fbs_258181898823] => \"access_token=258181898823|2.q_qb_yoreo0_xc4h8pxkrq__.3600.1291280400-100000664203700|lqtgr_oijtasgmek61awxmxfvfk&expires=1291280400&secret=85eteelzj8lkv82v_pwrsa__&session_key=2.q_qb_yoreo0_xc4h8pxkrq__.3600.1291280400-100000664203700&sig=d4cc0e4c0992ea29c0adfd60dc27185b&uid=100000664203700\" )
the id want 100000664203700
if using requets 2.0 http://developers.facebook.com/docs/reference/dialogs/requests/
you can user id form current session , append data parameter in request. facebook send data though string , can extract on redirect uri.
as per print_r() have tried json decoding $_request? give array work , can quick search uid= in string.
Comments
Post a Comment