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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:04:10+00:00 2026-05-23T11:04:10+00:00

EDIT – Closer. Need to have a port number for my callback url. i.e.

  • 0

EDIT –
Closer. Need to have a port number for my callback url.

i.e. http://127.0.0.1:1234

Problem is that port is dynamic and constantly changing. Has anyone ran into this before?


Working with rhomobile. Need some help to better understanding how facebook oauth2 works.

when user launches app for the first time want to do facebook connect to get user info and post to wall when user comments.

Assume I can do the following:

Have a button which calls an Action in my Controller. -> Action launches WebView to FB mobile for authentication -> User enters credentials on FB -> on redirect_uri_controller gets auth_code and I do a AsyncHttp.get requesting token with another redirect_url -> lands redirect_url & auth_token stored.

Right now, have a button that calls the below controller

def fb_initiate_connect
  call_back_url = url_for(:controller => "Settings", :action => :fb_initiate_connect_callback)
  url = "http://www.facebook.com/dialog/oauth?client_id=#{fb_app_id}&redirect_uri=#{call_back_url}&scope=email,read_stream,publish_stream&display=touch"
  WebView.navigate(url)
end

This launches a UIWebview in my app, goes to FB mobile site but getting “An error occurred with APP_NAME. Please Try again later.”

Think its because cookie is not being set/found? Everything in here is pretty much manual so would have to do something like WebView.execute_js("document.cookie=WHAT?;") But do I put this in my call_back_url or fb_initiate_connect?

  • 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-23T11:04:10+00:00Added an answer on May 23, 2026 at 11:04 am

    Yes, Rhodes dynamically configures the port because specifying an explicit port may conflict with another port being used on the device by another Rhodes application or anything else on the device.

    You can force the port on which your application runs in the RhoConfig.txt, with the property:

    local_server_port = 8080
    

    However, the best solution would be to get the dynamic server port by:

    System.get_property('rhodes_port') 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

(EDIT: I have asked the wrong question. The real problem I'm having is over
Edit: For personn interested in a cleaner way to implemenent that, have a look
Edit: Translated I have a RSS-feed that i want to parse. It's a podcast
EDIT: Sorry about ellipsis that's not what I actually have. For declaring an array
Edit: From another question I provided an answer that has links to a lot
EDIT: Learned that Webmethods actually uses NLST, not LIST, if that matters Our business
EDIT What small things which are too easy to overlook do I need to
Edit: I have solved this by myself. See my answer below I have set
Edit: The below question was answered by this . I have a new updated
EDIT: Changed as I have a different issue with the same code 2nd Edit:

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.