Android Question Uploading Photo to Facebook

grafsoft

Well-Known Member
Licensed User
Longtime User
Hi,

What I want is: The user should be able to post a picture to his own history.

I read the tutorial and tried to start the example http://www.b4x.com/android/forum/attachments/android2facebook-zip.11795/

I got ClientID and ClientSecret.

B4X:
' This is a URL you make and add to you FACEBOOK APP
   '
   ' Dim RedirectUri As String : RedirectUri="http://xxx/"
   Dim RedirectUri As String : RedirectUri="http://www.grafsoft.at/A-Tag/"

Stupid me, I do not understand What this RedirectUri should do.

I get an error message "The settings do not allow the URL. It has to be the same as the Website URL or the Canvas-URL or the domain must be sub-domain of an APP-Domain."

Do I have to crate a facebook-page for this? I want the Photo to be posted to the history of the user.

Thank you

Peter
 

grafsoft

Well-Known Member
Licensed User
Longtime User
Wow, that was fast! I have read the documentation, but could you tell me in short what this redirect_url should do? Thank you!
 
Upvote 0

grafsoft

Well-Known Member
Licensed User
Longtime User
Thank you! Jist a comment: Create_Facebook_App_Quick_Guide.html looks a little out of date - the last 2 screens are different, at least for me.
 
Upvote 0

grafsoft

Well-Known Member
Licensed User
Longtime User
Unbenannt-1.jpg
 
Upvote 0

grafsoft

Well-Known Member
Licensed User
Longtime User
When I try to enter the redirect URL in this screen, I get error messages. `Probably the wrong page ?
 
Upvote 0

grafsoft

Well-Known Member
Licensed User
Longtime User
App domains:
"This must be dreived from canvas-url, unit binary url, site url, mobile site url, page tab url or secure page tab url."
Sorry, I have not got (or read) the email with your reply.
 
Upvote 0

grafsoft

Well-Known Member
Licensed User
Longtime User
I just did, it was accepted, but in "Basic" still the same error. I tried to run the app, at "login" it said "Please verify you have Internet access". I know that I have.
 
Upvote 0

NJDude

Expert
Licensed User
Longtime User
That error "Please verify you have Internet access" means you have either a bad URL or perhaps the site you used is down, by the way, the URL you typed must be EXACTLY the same on Facebook and on your app, if you entered for example http://www.mysite.com the "mywebsite" variable on the app must be the same, e.g.
B4X:
Private myWebsite As String = "http://www.mysite.com"
 
Upvote 0

grafsoft

Well-Known Member
Licensed User
Longtime User
The website is up and running. I used copy and paste and the website name is exactly the same. I tried with and without trailing slashes.
http://www.grafsoft.at/.
I have other websites too, should I try them? But they will always point to the same server.
 
Upvote 0

grafsoft

Well-Known Member
Licensed User
Longtime User
You have more experience on that topic - facebook - I have none. How can I proceed? Do they have any working support?
 
Upvote 0

NJDude

Expert
Licensed User
Longtime User
By FB side I mean your configuration, have you read the documentation I included with the library?, also, make sure you have the latest version, I issued a couple of updates a little while ago.
 
Upvote 0

grafsoft

Well-Known Member
Licensed User
Longtime User
I updated, and get org.json.json exception : end of input at character 0 of (ends here)

I will check my settings.
 
Upvote 0
Top