Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6931301
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T11:33:33+00:00 2026-05-27T11:33:33+00:00

So recently I’ve begun work on a plugin for wordpress that integrates with facebook,

  • 0

So recently I’ve begun work on a plugin for wordpress that integrates with facebook, I’ve never used Facebook’s SDK before, but after reading the documentation I felt relatively confident. But I’ve run into a problem at the oAuth level, my code does not seem to generate a loginUrl, when I look at the source on my plugin’s settings page, there is no link visible. The code in question is below:

oAuth.php

<?php

include_once('src/facebook.php');

$fbconfig = array(
    'appId' => 'app1d',
    'secret' => '53cr3t',
    'cookie' => true  
              );

$facebook = new Facebook($fbconfig);

$loginUrl = $facebook->getLoginUrl(
array(
    'scope' => 'offline_access, user_events',
    'redirect_uri' => 'http://localhost/mad/wp-admin/options-general.php?page=facebook_event_options'
    )
);

?>

And here’s the code on the menu page that isn’t working

This code is on another page, I’ve included oAuth.php on this page.

       echo '<a href="' . $loginUrl . '"><img src="' . plugins_url('EventsList/images/connect.png') . '" class="fbConnect"></a>';

It’s probably something that’s so simple I haven’t noticed it, any help would greatly be appreciated 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T11:33:34+00:00Added an answer on May 27, 2026 at 11:33 am

    The issue is in the variables scope

    Though you’d better wrapped all your retrieving link code into a function and call it, instead of using global variables

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Recently I'm doing some work on RTMP streaming, that is using Flowplayer to integrate
Recently I noticed (after others have extended the project) that the compile time significantly
Recently I've noticed that on occasion I do not get a mayorship notification when
Recently I've begun to code in Objective-C for iOS 5 devices. My brand new
Recently i am making an app on facebook. So i have use facebook api.
Recently,I am handling a solution for WebPart internationalization,but I am not familiar with the
Recently, we had released an app. Before we releasing, we tested it on Samsung
Recently, I'm trying to solve all the exercises in CLRS. but there are some
Recently I saw a nice extension of Typo3. It is called metatags but I
Recently in a project, I had a multiprocessing Process that crashed. A child process

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.