B4A Library Facebook

boten

Active Member
Licensed User
Longtime User
Trying to wrap fb object and all fb code (login,posttotimeline,fb events) in a class. When initing fb with
fb.initialize(activity,me,...) it would not compile.
Also will not compile with
fb.initialize(main,me...)

Any advice?
 

pietervdb

Member
Licensed User
Longtime User
uploading works and posting however it keeps hanging in the screen that "uploading to facebook" status.. Even if the picture is already uploaded. How to check if the uploading is done????
 

asales

Expert
Licensed User
Longtime User
Is possible to use this library to post / upload image in a especific friend wall?
 

asales

Expert
Licensed User
Longtime User
Use any of these 2 events accordingly: PostToTimeline_Response or UploadToTimeline_Response.

I am using this way:
B4X:
Sub myFB_UploadToTimeline_Response(PictureID As String)
    'Save the most recent post to delete it later
    PostToDeleteID = PictureID

    'hide the progress dialog
    ProgressDialogHide           
End Sub

It's Ok or there are other method to check if upload is done and hide the progressdialog?
 

catyinwong

Active Member
Licensed User
Longtime User
It doesn't work. When I ran it and clicked the Login button, it popped out an error message (Invalid or missing AppID/AppSecret, Missing client_id parameter) but i have already typed all the info... can anyone help???
 

catyinwong

Active Member
Licensed User
Longtime User
That means the information you entered is missing or incorrect. Have you followed the instructions in the quick guide?

Thanks a lot. I checked and found the error was because I misplaced the library in the libraries folder instead of the additional libraries folder.. But another error popped up, saying that "The parameter redirect_url is required". But it was the same with that one in the Facebook app... Why is there the error??
 

NJDude

Expert
Licensed User
Longtime User
Double check your settings, also, male sure there's no redirection or the validation will fail.
 

NJDude

Expert
Licensed User
Longtime User
If you have entered the URL exactly as you have it on FB it should work.

One thing though, now you will have to create a new FB app, the App ID and App Secret should NOT be published unless you want your app to be hacked
 

catyinwong

Active Member
Licensed User
Longtime User
If you have entered the URL exactly as you have it on FB it should work.

One thing though, now you will have to create a new FB app, the App ID and App Secret should NOT be published unless you want your app to be hacked

I have entered exactly the same. That's why I am asking for help.....
I know that. The FB app is only for testing, I will delete it after I have tried it working anyway so it doesn't matter.
 

catyinwong

Active Member
Licensed User
Longtime User
If you go to SETTINGS -> ADVANCED, under SECURITY you should see "Valid OAuth redirect URIs" do you have the link to your site there?
Yes. BTW do I need the Client Token for anywhere?
 

Attachments

  • upload_2015-2-1_5-1-27.png
    176.6 KB · Views: 177

catyinwong

Active Member
Licensed User
Longtime User
The Client token is not needed, you seem to have the right settings, but still something is not right.

Is there something wrong with the codes then??
 

Attachments

  • Facebook_Guide_Project_Error.zip
    98.7 KB · Views: 203

NJDude

Expert
Licensed User
Longtime User
It is something wrong with your FB app, I used the code you posted and used my info, it works like a charm, I put yours and doesn't work, you are missing a step somewhere.
 

catyinwong

Active Member
Licensed User
Longtime User
It is something wrong with your FB app, I used the code you posted and used my info, it works like a charm, I put yours and doesn't work, you are missing a step somewhere.
What should be missed? There isn't much about the fb app setting in this thread so I simply followed other threads which I searched. Maybe I was following one incompleted or outdated??
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…