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 8443413
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T09:07:55+00:00 2026-06-10T09:07:55+00:00

I’m trying to create a facebook login url using Facebook PHP SDK (v.3.2.0) from

  • 0

I’m trying to create a facebook login url using Facebook PHP SDK (v.3.2.0) from
https://github.com/facebook/facebook-php-sdk
below is my code

$config = array(    'appId'  => '***',  
                    'secret' => '***',  
                    'cookie' => true 
                    );
require_once("facebook.php");

$facebook = new Facebook($config);

$params = array('scope' => 'user_birthday, user_location, email',
                'redirect_uri' => "http://my_domain.in/user/fb",    
                'display' => 'popup'
                );
$loginUrl = $facebook->getLoginUrl($params);

the problem is when the loginUrl is clicked it will give error from facebook as below:

API Error Code: 100 API Error Description: Invalid parameter Error
Message: Display type popup. isn’t valid on http://www.facebook.com. You
should access a different domain (m.facebook.com, http://www.facebook.com),
or use one of the following supported display types: page, popup,
iframe, touch, none

the question is where did i go wrong?
fyi, the very same code were fine before, somehow it’s not working now, i kinda missed when the problem actually happen at first, but in between i did upgrade the facebook-php-sdk from 3.1.1 to 3.2.0, n possibly the domain and url settings in my facebook app.

app domain : my_domain.in
site url : http://www.my_domain.in

furthermore,
even my i changed the params into

$params = array('scope' => 'user_birthday, user_location, email',
                'redirect_uri' => "http://my_domain.in/user/fb"
                );

i still receive an error with different message

API Error Code: 100
API Error Description: Invalid parameter
Error Message: Unsupported scope: ‘email.’. Supported scopes: ads_management create_event create_note email export_stream friends_about_me friends_activities friends_birthday friends_checkins friends_education_history friends_events friends_games_activity friends_groups friends_hometown friends_interests friends_likes friends_location friends_notes friends_online_presence friends_photo_video_tags friends_photos friends_questions friends_relationship_details friends_relationships friends_religion_politics friends_status friends_subscriptions friends_videos friends_website friends_work_history manage_friendlists manage_notifications manage_pages offline_access photo_upload publish_actions publish_checkins publish_stream read_friendlists read_insights read_mailbox read_page_mailboxes read_requests read_stream rsvp_event share_item sms status_update user_about_me user_activities user_birthday user_checkins user_education_history user_events user_games_activity user_groups user_hometown user_interests user_likes user_location user_notes user_online_presence user_photo_video_tags user_photos user_questions user_relationship_details user_relationships user_religion_politics user_status user_subscriptions user_videos user_website user_work_history video_upload xmpp_login

please help,
thanks.

  • 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-06-10T09:07:57+00:00Added an answer on June 10, 2026 at 9:07 am

    SOLVED.

    the problem was there was an additional character (a dot) in my href attribute,
    as coded below

    <a href="<?php echo $loginUrl; ?>.">
    

    noticed it after reviewing again the error message (popup*.* email*.*).

    it simply worked when i removed the character.
    so it is not caused by the facebook-php-sdk version nor the domain/url settings in my facebook app.

    sorry for any trouble caused.

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

Sidebar

Related Questions

I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I'm trying to create an if statement in PHP that prevents a single post
Basically, what I'm trying to create is a page of div tags, each has
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
Does anyone know how can I replace this 2 symbol below from the string
I am trying to understand how to use SyndicationItem to display feed which is
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has

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.