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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T17:25:32+00:00 2026-06-13T17:25:32+00:00

I’ve a simple application, that requires facebook signup/login built in Rails 3 that works

  • 0

I’ve a simple application, that requires facebook signup/login built in Rails 3 that works exactly as I want it to.
Meanwhile, I had several requests to make it behave like an API, the web app is a social media tool where people publish content to their own social networks. i’m converting the system to provide a solution for the following problem:

  • 3rd party website having their own login system
  • They want to make a button – publish through X service – and as soon as the user presses the button he will be shown the Facebook Permissions’ dialog for my own fb app, as soon as he authorizes it the content will be published

So far, while the webapp was a standalone website, this was really easy to do – they would go to my webapp, login with facebook and published whatever they wanted to, however, I’m finding it hard to come up with a solution that doesn’t present any security issues. Here’s what I was thinking:

  • I provide a JS SDK which:
    • the 3rd party install in their website -> a special method is associated with a button
    • Once the button is pressed, the user is redirected to FB (sets de redirect_ui to be the current page)
    • catches the params whenever FB redirects back (as soon as the user gives the permissions)
    • Push the content through Facebook and so on
    • the 3rd party provides a callback that will run as soon as the content is published (I send them the FB_ID and access token)
    • The 3rd party can now make calls to all my API given they will send the FB_ID and access token which I sent as soon as I had the permissions

Will this work ? Can I easily catch back the FB redirect ? Are there any security issues ?

Thanks in advance,
Ze

  • 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-13T17:25:33+00:00Added an answer on June 13, 2026 at 5:25 pm

    My system does something quite similar. I provide API to 3rd party sites and make calls to Facebook on behalf of their users.

    The approach I took was to implement my system as an oauth provider. This way, when the user logs in on the 3rd party site, he’s presented with my login page, which on click or by redirection, redirects him to Facebook oauth flow.

    3rd party–>my site–> Facebook

    However, this might be a bit of an overkill in your case.

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

Sidebar

Related Questions

I am doing a simple coin flipping experiment for class that involves flipping a
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have just tried to save a simple *.rtf file with some websites and
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
I want to count how many characters a certain string has in PHP, but
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I've got a string that has curly quotes in it. I'd like to replace
I want use html5's new tag to play a wav file (currently only supported

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.