Skip to content

Commit

Permalink
Fixed error from Facebook support spotted in wild
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Graham committed Jul 22, 2012
1 parent feded15 commit 092371e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sources_custom/hooks/systems/syndication/facebook.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ function auth_set($member_id,$oauth_url)

// oauth apparently worked
$access_token=$FACEBOOK_CONNECT->getAccessToken();
if (is_null($access_token)) // Actually it didn't
{
attach_message(do_lang_tempcode('FACEBOOK_OAUTH_FAIL',escape_html(do_lang('UNKNOWN'))),'warn');
return false;
}

if (is_null($member_id))
{
Expand Down

0 comments on commit 092371e

Please sign in to comment.