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

  • SEARCH
  • Home
  • 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 8211129
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T10:19:28+00:00 2026-06-07T10:19:28+00:00

This is my current code to request permission to see email and user_photos ‘req_perms’

  • 0

This is my current code to request permission to see email and user_photos

    'req_perms' => 'email,user_photos',

I want to access user photos when the user is offline, I seem to remember this was possible but maybe I am wrong. Anyway if it’s possible, how is it done?

  • 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-07T10:19:30+00:00Added an answer on June 7, 2026 at 10:19 am

    Hyunmin (in comments) has the right link.

    As a very quick summary:

    1. log the user in normally; you’ll get an access token. This may be a short lived or long lived (60 day) token – depends on login method being serverside or client-side (PHP or JS) but don’t worry which you get.
    2. Note if you are worried: you can also check expiry if you like as the expiry is provided when you are given the access token. But I again skip this step.
    3. Once a day you can extend the token back ot the full 60 days. Simply call

      https://graph.facebook.com/oauth/access_token?
      client_id=APP_ID&
      client_secret=APP_SECRET&
      grant_type=fb_exchange_token&
      fb_exchange_token=EXISTING_ACCESS_TOKEN

    and you get back an access token (may or may not be the same). Just use/store this new access token in place of the old one.

    Actually really simple – except for the bit of tracking the “once per day” upgrade bit. (And for now you can ignore this and call multiple times if needed – just slows things down fractionally.)


    In response to comment – “how do you call that URL that gives you the token?”

    You don’t redirect the user as it’s you that needs the response value, so you need to call it and handle it.

    In PHP the simplest for testing (but not recommended) is to use

    $response = file_get_contents($url);
    

    but on production systems you should usse CURL (as some production systems don’t allow file_get_contents for external URLs). Either google for a CURL example, or you could tap into the makeRequest() function in the included facebook SDK libraries.

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

Sidebar

Related Questions

My current code is this $swift = email::connect(); $swift->setSubject('hello') ->setFrom(array('alex@example.com.au' => 'Alex')) ->setTo(array('alex@example.com.au' =>
I am having a bit of difficulty with this current code I have set
As a beginner in Ocaml, I have this current working code: ... let ch_in
if (webBrowser1.Url.AbsoluteUri == www.google.com) { label9.Text = webBrowser1.Url.AbsoluteUri; } This is my current code.
This is my current search code. -(void)filterContentForSearchText:(NSString *)searchText scope:(NSString *)scope { [filteredList removeAllObjects]; for(Location
This question is related to a previous question of mine That's my current code
I'm running code that sometimes yields this: UInt32 current; int left, right; ... //sometimes
The code i current have is this. function update (){ latest_id = $('#image:first').data('position'); /*
This is my current scenario: I have checked in my grails app code +
here is my current line of code: $(<li>).text($(this).text()).appendTo(#theList); Which results in <ul id=theList> <li>blah</li>

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.