B4A Library Facebook

leitor79

Active Member
Licensed User
Longtime User
I've used this library a long ago, maybe I don't remember much, but I remember having issues (I don't know if issues like yours) involving facebool two-step verification and/or authorized devices in your facebook account.

Regards!
 

Alberto Iglesias

Well-Known Member
Licensed User
Longtime User
OK.. I will try again.

Another question, please: How I can get the user email?

i put like this in my code:

Dim ListOfPermissions As List
ListOfPermissions.Initialize
ListOfPermissions.AddAll(Array As String(fb.PERMISSION_EMAIL))
fb.LoginWithPermissions(ListOfPermissions)

And when GetMyProfile I don´t have this field....

Thanks
 

Alberto Iglesias

Well-Known Member
Licensed User
Longtime User
don´t worry.!! I got now.

I call this:

B4X:
    Dim lstFields As List
    lstFields.Initialize
    lstFields.AddAll(Array As String(fb.PAGE_FIELD_NAME,fb.USER_FIELD_EMAIL))
    fb.GetFields(strID,lstFields)


B4X:
Sub myFB_GetFields_Response(JSONText As String)
      Log("[myFB_GetFields_Response]:" & JSONText)
End Sub

{"name":"my name from facebook","email":"myemail\u0040hotmail.com","id":"11222333444"}


Now it´s working! Thanks
 

analizer3816

Member
Licensed User
Longtime User
@NJDude, can you add video uploading feature?
because facebook allow this.
or if facebook lib1.9 can do it, please tell me.

thanks in advanced
 

Smee

Well-Known Member
Licensed User
Longtime User
Is it possible to post to a group of which I am a member
 

Smee

Well-Known Member
Licensed User
Longtime User
Thanks for a great library. I have a small problem. I want to test if a user is logged in so I use "If FB.IsUserLoggedIn Then" which is fine when they are logged in but it seems it also returns true if they are logged in on the device but not in the app.

I tried to overcome this by running "FB.GetMyProfile" and trapping for an error. The Sub myFB_Facebook_ErrorMessages(Message As String) fires on the error but i have no way to dismiss it so I get a crash


I realise I could just log in first but I give the user the option of a google login or a facebook one.
Is there any way to overcome this?

Many thanks?
 

Smee

Well-Known Member
Licensed User
Longtime User
This library doesn't interact with the FB app so it won't be possible.

Thanks for the reply. I am not sure I understand what you mean it "doesn't interact with the FB App" . Do you mean that it just does not interact with Facebook? Does it also mean that the crash cannot be avoided?
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…