In the Facebook android sdk docs, the example presented uses Activity to authenticate the user. Is it possible to do the same from a Service? An example code will be quite handy.
thank you
In the Facebook android sdk docs , the example presented uses Activity to authenticate
Share
It’s impossible to authorize within Facebook object anywhere else except Activity.
You can try to obtain access token via some web-service and initialize your
with that. Still, you can authorize your session within activity and pass it through binder.
Here is my example.
This is a service
And this is usage from activity