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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T20:40:04+00:00 2026-05-22T20:40:04+00:00

I am using facebook graph api, to retrieve logged in user’s info. $facebookdata =

  • 0

I am using facebook graph api, to retrieve logged in user’s info.

$facebookdata = json_decode(file_get_contents('https://graph.facebook.com/me?access_token=' . $fb_accesstoken . '&fields=name,picture'),true);

Now When I var_dump I get null. I did try to goto url https://graph.facebook.com/me?access_token=ACCESS_TOKEN&fields=id,name,picture. It shows the name and photourl.

I appreciate any help.

  • 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-22T20:40:05+00:00Added an answer on May 22, 2026 at 8:40 pm

    Check if allow_url_fopen is enabled in your php.ini. Otherwise adapt, because file_get_contents will not be able to read from http URLs then.

    Second, raise your error_reporting level. It should have told you so.

    If you get no error message, then access with the PHP user_agent might be blocked. There is another php.ini setting for that. Also alternatively, just try curl.

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

Sidebar

Related Questions

I am using graph api to retrieve my friend list. https://graph.facebook.com/me/friends?access_token= I noticed it
I am using facebook's graph api to retrieve user's information. First I retrieved the
I am using the Facebook Graph API to get basic info of a facebook
I've tried to update the status using the Facebook graph API with Android http://developers.facebook.com/docs/reference/api/status/
Using Facebook Graph API and my app credentials I am able to retrieve a
I'm trying to get the education info from Facebook's graph API using stdclass. here's
I'm using the Facebook Graph API to retrieve items from my wall with a
I am trying to retrieve comments by given url, e.g. https://graph.facebook.com/comments/?ids=http://example.com/ However, when I
I have a couple of problems using facebook graph api. 1). When i try
Who knows a good Java library for using Facebook's graph API?

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.