CMS MADE SIMPLE FORGE

CGFBApp

 

[#9472] facebook api requires app secret code

avatar
Created By: dave (enxdtw)
Date Submitted: Wed Aug 14 16:09:35 -0400 2013

Assigned To: Robert Campbell (calguy1000)
Version: 1.0.9
CMSMS Version: 1.11.7
Severity: Major
Resolution: None
State: Open
Summary:
facebook api requires app secret code
Detailed Description:
If the appsecret is set for the facebook app (this is the default)

Require AppSecret Proof for Server API calls:

This requires the application to submit a proof of app secret when it makes API
calls from a server.

The following code fails at the cgfb_me call

{cgfb_init}{* initialize facebook javascript SDK *}
{cgfb_login}{* provide a login button to facebook *} 

{cgfb_uid assign='fb_uid'}{* get the facebook user id *}
{if isset($fb_uid)}
  {* user is logged in *}

{cgfb_me assign="me"}{$me|@print_r}

{/if}

Fatal error: Uncaught OAuthException: An active access token must be used to
query information about the current user. thrown in
/home/eject/public_html/modules/CGFBApp/lib/php-sdk/base_facebook.php on line
1254

more information is available here 

https://developers.facebook.com/docs/reference/api/securing-graph-api/


History