Facebook SDK Wrapper + Native Facebook LoginButton

luke2012

Well-Known Member
Licensed User
Longtime User
@Periklis Koutsogiannis my compliments for this outstanding and useful tutorial! :)

I'm a new about SSO using social platforms and I have a specific question about it.
Can I use the Facebook SSO credentials in order to send an eMail ?
 

Douglas Farias

Expert
Licensed User
Longtime User
someone know how to get images with original size?
when u get all user images this come 130x130 *-*
 

Juan Pablo da Rocha

Member
Licensed User
Longtime User
Hi, Thanks for the Wrapper, it is easy to run and works good!!

I publish on Facebook Wall and I see Message and link parameters ok, however I can't see where are printed <name>, <caption> and <description> parameters, even if a send them, they do not appear on facebook wall.

Result = Facebook.PublishPost(sFrase, _
"https://play.google.com/store/apps/details?id=com.matetejuego.free", " ", _
sDefinicion, "Matete", "Un juego de palabras diferente")

Am I doing something wrong?

Thanks in advance and please, apologize my english!
Juan
 

Douglas Farias

Expert
Licensed User
Longtime User
this Wrapper is no more working, facebook have a update, your problem is the user id
now with new update of facebook all users id change with this Wrapper

http://graph.facebook.com/douglas.android
my id is "id": "100000606767838" in the Wrapper my id is 180487498794804804 :(

we cant use this Wrapper more =(
 

Juan Pablo da Rocha

Member
Licensed User
Longtime User
this Wrapper is no more working, facebook have a update, your problem is the user id
now with new update of facebook all users id change with this Wrapper

http://graph.facebook.com/douglas.android
my id is "id": "100000606767838" in the Wrapper my id is 180487498794804804 :(

we cant use this Wrapper more =(

Hi Douglas, thanks for your answer, however I'm not sure about what you say, i guess wrapper still working.
Last monday I sent my apk to facebook to validate and they were capable to post in facebook without problems.

To be clear, every time I send a post to facebook wall:
* Message is posted in the wall ok
* Link is posted in the wall ok
but
* Name, Caption and Description strings are not posted in the wall.

My problem/question is about that specific problem.
Thank you again
Juan

@Periklis Koutsogiannis
 

Douglas Farias

Expert
Licensed User
Longtime User
Hi Douglas, thanks for your answer, however I'm not sure about what you say, i guess wrapper still working.
Last monday I sent my apk to facebook to validate and they were capable to post in facebook without problems.

To be clear, every time I send a post to facebook wall:
* Message is posted in the wall ok
* Link is posted in the wall ok
but
* Name, Caption and Description strings are not posted in the wall.

My problem/question is about that specific problem.
Thank you again
Juan

have u see your user id?
http://graph.facebook.com/putyourfacebook here

and see your id

on the fb Wrapper, try make a log of your id
its diferent *-* , i have problem for post, get photos etc, because when u make a request id is diferent
 

Noize

Member
Licensed User
Longtime User
Everytime I get the same error

Exception in java.lang

The error is on fblogin_Click event: signature does not match expected signature.

I've followed the tutorial and I think it's ok, but I'm wrong.

Editing manifest
Creating the Appconfig & file
Adding the socialapi to the builder
Creating a fb login button and declaring the FacebookProvider & ThisActivity variables
I've editted the FB devs page also, adding the hash logged on Activity_Create,

But... nothing happens, wich signature is it?
 

Noize

Member
Licensed User
Longtime User
I've removed the "(Provider as SocialApiProvider)" from fblogin_Click and it works fine, it shows the FB login & permission , but now, how can I save the creds?.

Thanks
 

Douglas Farias

Expert
Licensed User
Longtime User
I've removed the "(Provider as SocialApiProvider)" from fblogin_Click and it works fine, it shows the FB login & permission , but now, how can I save the creds?.

Thanks

i recomend u for dont use this lib, if u need save the userid.
This lib is reporting the Erado userid after the last update

is not a good ideia use this lib for now

for example my id is
100000606767838
http://graph.facebook.com/douglas.android
with this lib, my id is 804074804014084 o_O
 

miguelconde

Member
Licensed User
Longtime User
Perikis. Thank for this job. I have a question: Where am I supposed to place the facebooksdk.jar.. files?.
I placed the rsc and the jar files in my Objects app folders. I dont understand when you
said: "Change the C:\b4a-dev folder to where you have extracted the socialapi archive."

Thank you
 

GiovanniPolese

Well-Known Member
Licensed User
Longtime User
Hi.
I write here my experience with adaptation of Periklis code, sample2, and his library. I have read of many problems concerning signatures etc. BUT, with my "surprise", actually I had no problem and now I wonder myself where and when these problems will arise. As a matter of fact, first, in Facebook I have done the setup of my Android App, and generated App Id and secret code. Then I put these data inside the adpated code, following the Step by Step procedure. Then I tested with Android Simulator, and, as expected no problems. Then I uploaded by cable a signed Apk to my phone, installed it .. and works perfectly. That's all. I didn't use the code emitted by the Log, as the author of the library says. Perhaps my situation is different from that of other users that wrote comments here? The only thing that happens is that Facebook asks me for confirming the Access and, after first time, despite asking again a confirm, it says that I have already authorized this App..
Very useful lib, thanks to Periklis. Great job.
 
Top