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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T21:59:27+00:00 2026-06-06T21:59:27+00:00

what I need: upload photos to user’s fan page as a page, using an

  • 0

what I need: upload photos to user’s fan page as a page, using an app for that

what I have: my website which does uploading, and a user, who created fan page and application, and that app’s id and secret

what I do:

  1. call FB.init() with that appId

  2. call FB.login() with manage_pages,publish_stream permissions – this prompts FB login popup where user is asked to login and then to authenticate the app. As the result I get app access token.

  3. Send request to https://graph.facebook.com/oauth/access_token?client_id=APP_ID&client_secret=APP_SECRET&grant_type=fb_exchange_token&fb_exchange_token=TOKEN_FROM_ABOVE to get extended app token valid for 2 months (and therefore page tokens will be extended as well as described here)

  4. Send request to https://graph.facebook.com/me/accounts?access_token=TOKEN_FROM_ABOVE to get a list of pages user manages, and let user to choose the page he wants to publish to.

  5. That gives me PAGE access token I can use to publish photos to user’s FAN page using /albumId/photos/ API call.

what is the problem:

the “via” link in the photo redirects user to MY website (where user has authenticated his app to upload to his page): enter image description here

that is because I had to ask user to enter my website’s URL in app settings, otherwise Facebook login dialog will complain:
enter image description here


SO MY QUESTIONS ARE:

  1. Am I doing this right? am I missing something probably?

  2. If I am – then how can I get that “via” link to link to user’s website?

Thank you.

  • 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-06T21:59:29+00:00Added an answer on June 6, 2026 at 9:59 pm

    I ended up adding client’s website URL as a query string parameter into “Site URL” field in the application settings – and then I need to modify my site’s backend to do redirects:

    http://mysite.com/?redirect=http://client-site.com
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been using paperclip to upload and auto-resize photos in my Rails app, and
I'm working on a page that will allow a user to upload a photo
I need to make a PHP application that supports upload photos from mobile phone.
I'm working on implementing Ajax-Upload for uploading photos in my Rails 3 app. The
I need to provide a means for a user to upload photos to their
I have an application where I need the user to upload a photo. After
We are making an app that includes a digital gallery which display photos and
I need to write code that enables a user to upload a photo or
I need to upload the photo of a user with his details from asp.net
I'm in need of a generic image upload for a PHP site. Photos and

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.