B4A Library [Chargeable] SocialAuth - Social Network Integration

SocialAuth - Social Network Integration

Now you do not need to integrate multiple SDKs if you want to integrate your application with multiple social networks.
You just need to add few lines of code after integrating the SocialAuth Android library in your app.

The API enables user authentication and sharing updates through different various social networks and
hides all the intricacies of generating signatures & token, doing security handshakes and provide an easy mechanism to build cool social apps.

With this library, you can:

* Quickly build share functionality for posting updates on facebook, twitter, linkedin and more.

* Easily create a Share button or a Social Bar containing various social networks

* Access profile of logged in user for easy user registration!

* Import friend contacts of logged in user (Email, Profile URL and Name)

* Create your own layout and add it to a any view object.

0Cqy5.jpg


Requirements:
- Basic4Android
- Android 2.3+
- SocialAuth library



What will you get from me:
- The library files
- A sample project
- A readme file. (Disclaimer.)
- Discount on a next library purchase
- Lifetime library support
- LinearLayout object!


Payment
The price of the library is 15 Euros.
Payment is done through PayPal.
If you are interested in the library, you can send me a private message here on the forums or send me an email to xtremelyvirtualstudio@gmail.com.​

Kind regards,
Tomas
 
Last edited:

XverhelstX

Well-Known Member
Licensed User
Longtime User
First you should authenticate to your provider: facebook, twitter, etc.
You can do this with the bar, list or authorize(facebook).

then you should do this:
B4X:
   AuthUI.UpdateStatus("Set your facebook message here.")


Regards,
Tomas
 

ringmyr

Member
Licensed User
Longtime User
oki
i want to post on facebook a button

ex

label = "hello"

then i press the button i put the labeltext on facebook wall
 

ringmyr

Member
Licensed User
Longtime User
damm im lost :BangHead:

i cant it to work i got error then i try to post

i have sign in to face and ad a label and a button to yours sampel
B4X:
Sub Button1_Click
   Dim authui As SocialAuthUI
   Dim label1 As Label
label1.initialize("label1")
    authui.UpdateStatus(label1.text)
End Sub


i got this error
B4X:
LogCat connected to: B4A-Bridge: Sony Ericsson LT18i-358506044983496
--------- beginning of /dev/log/system
--------- beginning of /dev/log/main
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Service (service1) Create **
** Service (service1) Start **
Connected to B4A-Bridge (Wifi)
Installing file.
** Activity (main) Pause, UserClosed = false **
PackageAdded: package:com.rootsoft.socialauth
** Activity (main) Create, isFirst = true **
SocialAuth has been initialized.
** Activity (main) Resume **
SocialAuthUIUpdateStatus (java line: 114)
java.lang.NullPointerException
   at com.rootsoft.socialauth.SocialAuthUI.UpdateStatus(SocialAuthUI.java:114)
   at com.rootsoft.socialauth.main._button1_click(main.java:267)
   at java.lang.reflect.Method.invokeNative(Native Method)
   at java.lang.reflect.Method.invoke(Method.java:507)
   at anywheresoftware.b4a.BA.raiseEvent2(BA.java:170)
   at anywheresoftware.b4a.BA.raiseEvent2(BA.java:158)
   at anywheresoftware.b4a.BA.raiseEvent(BA.java:154)
   at anywheresoftware.b4a.objects.ViewWrapper$1.onClick(ViewWrapper.java:54)
   at android.view.View.performClick(View.java:2552)
   at android.view.View$PerformClick.run(View.java:9229)
   at android.os.Handler.handleCallback(Handler.java:587)
   at android.os.Handler.dispatchMessage(Handler.java:92)
   at android.os.Looper.loop(Looper.java:130)
   at android.app.ActivityThread.main(ActivityThread.java:3701)
   at java.lang.reflect.Method.invokeNative(Native Method)
   at java.lang.reflect.Method.invoke(Method.java:507)
   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866)
   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:624)
   at dalvik.system.NativeStart.main(Native Method)
java.lang.NullPointerException
Installing file.
** Activity (main) Pause, UserClosed = false **
PackageAdded: package:com.rootsoft.socialauth
** Activity (main) Create, isFirst = true **
SocialAuth has been initialized.
** Activity (main) Resume **
SocialAuthUIUpdateStatus (java line: 114)
java.lang.NullPointerException
   at com.rootsoft.socialauth.SocialAuthUI.UpdateStatus(SocialAuthUI.java:114)
   at com.rootsoft.socialauth.main._button1_click(main.java:267)
   at java.lang.reflect.Method.invokeNative(Native Method)
   at java.lang.reflect.Method.invoke(Method.java:507)
   at anywheresoftware.b4a.BA.raiseEvent2(BA.java:170)
   at anywheresoftware.b4a.BA.raiseEvent2(BA.java:158)
   at anywheresoftware.b4a.BA.raiseEvent(BA.java:154)
   at anywheresoftware.b4a.objects.ViewWrapper$1.onClick(ViewWrapper.java:54)
   at android.view.View.performClick(View.java:2552)
   at android.view.View$PerformClick.run(View.java:9229)
   at android.os.Handler.handleCallback(Handler.java:587)
   at android.os.Handler.dispatchMessage(Handler.java:92)
   at android.os.Looper.loop(Looper.java:130)
   at android.app.ActivityThread.main(ActivityThread.java:3701)
   at java.lang.reflect.Method.invokeNative(Native Method)
   at java.lang.reflect.Method.invoke(Method.java:507)
   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866)
   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:624)
   at dalvik.system.NativeStart.main(Native Method)
java.lang.NullPointerException
SocialAuthUIUpdateStatus (java line: 114)
java.lang.NullPointerException
   at com.rootsoft.socialauth.SocialAuthUI.UpdateStatus(SocialAuthUI.java:114)
   at com.rootsoft.socialauth.main._button1_click(main.java:267)
   at java.lang.reflect.Method.invokeNative(Native Method)
   at java.lang.reflect.Method.invoke(Method.java:507)
   at anywheresoftware.b4a.BA.raiseEvent2(BA.java:170)
   at anywheresoftware.b4a.BA.raiseEvent2(BA.java:158)
   at anywheresoftware.b4a.BA.raiseEvent(BA.java:154)
   at anywheresoftware.b4a.objects.ViewWrapper$1.onClick(ViewWrapper.java:54)
   at android.view.View.performClick(View.java:2552)
   at android.view.View$PerformClick.run(View.java:9229)
   at android.os.Handler.handleCallback(Handler.java:587)
   at android.os.Handler.dispatchMessage(Handler.java:92)
   at android.os.Looper.loop(Looper.java:130)
   at android.app.ActivityThread.main(ActivityThread.java:3701)
   at java.lang.reflect.Method.invokeNative(Native Method)
   at java.lang.reflect.Method.invoke(Method.java:507)
   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866)
   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:624)
   at dalvik.system.NativeStart.main(Native Method)
java.lang.NullPointerException
SocialAuthUIUpdateStatus (java line: 114)
java.lang.NullPointerException
   at com.rootsoft.socialauth.SocialAuthUI.UpdateStatus(SocialAuthUI.java:114)
   at com.rootsoft.socialauth.main._button1_click(main.java:267)
   at java.lang.reflect.Method.invokeNative(Native Method)
   at java.lang.reflect.Method.invoke(Method.java:507)
   at anywheresoftware.b4a.BA.raiseEvent2(BA.java:170)
   at anywheresoftware.b4a.BA.raiseEvent2(BA.java:158)
   at anywheresoftware.b4a.BA.raiseEvent(BA.java:154)
   at anywheresoftware.b4a.objects.ViewWrapper$1.onClick(ViewWrapper.java:54)
   at android.view.View.performClick(View.java:2552)
   at android.view.View$PerformClick.run(View.java:9229)
   at android.os.Handler.handleCallback(Handler.java:587)
   at android.os.Handler.dispatchMessage(Handler.java:92)
   at android.os.Looper.loop(Looper.java:130)
   at android.app.ActivityThread.main(ActivityThread.java:3701)
   at java.lang.reflect.Method.invokeNative(Native Method)
   at java.lang.reflect.Method.invoke(Method.java:507)
   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866)
   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:624)
   at dalvik.system.NativeStart.main(Native Method)
java.lang.NullPointerException
SocialAuthUIUpdateStatus (java line: 114)
java.lang.NullPointerException
   at com.rootsoft.socialauth.SocialAuthUI.UpdateStatus(SocialAuthUI.java:114)
   at com.rootsoft.socialauth.main._button1_click(main.java:267)
   at java.lang.reflect.Method.invokeNative(Native Method)
   at java.lang.reflect.Method.invoke(Method.java:507)
   at anywheresoftware.b4a.BA.raiseEvent2(BA.java:170)
   at anywheresoftware.b4a.BA.raiseEvent2(BA.java:158)
   at anywheresoftware.b4a.BA.raiseEvent(BA.java:154)
   at anywheresoftware.b4a.objects.ViewWrapper$1.onClick(ViewWrapper.java:54)
   at android.view.View.performClick(View.java:2552)
   at android.view.View$PerformClick.run(View.java:9229)
   at android.os.Handler.handleCallback(Handler.java:587)
   at android.os.Handler.dispatchMessage(Handler.java:92)
   at android.os.Looper.loop(Looper.java:130)
   at android.app.ActivityThread.main(ActivityThread.java:3701)
   at java.lang.reflect.Method.invokeNative(Native Method)
   at java.lang.reflect.Method.invoke(Method.java:507)
   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866)
   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:624)
   at dalvik.system.NativeStart.main(Native Method)
java.lang.NullPointerException
** Activity (main) Resume **
Installing file.
** Activity (main) Pause, UserClosed = false **
PackageAdded: package:com.rootsoft.socialauth
** Activity (main) Create, isFirst = true **
SocialAuth has been initialized.
** Activity (main) Resume **
SocialAuthUIUpdateStatus (java line: 114)
java.lang.NullPointerException
   at com.rootsoft.socialauth.SocialAuthUI.UpdateStatus(SocialAuthUI.java:114)
   at com.rootsoft.socialauth.main._button1_click(main.java:267)
   at java.lang.reflect.Method.invokeNative(Native Method)
   at java.lang.reflect.Method.invoke(Method.java:507)
   at anywheresoftware.b4a.BA.raiseEvent2(BA.java:170)
   at anywheresoftware.b4a.BA.raiseEvent2(BA.java:158)
   at anywheresoftware.b4a.BA.raiseEvent(BA.java:154)
   at anywheresoftware.b4a.objects.ViewWrapper$1.onClick(ViewWrapper.java:54)
   at android.view.View.performClick(View.java:2552)
   at android.view.View$PerformClick.run(View.java:9229)
   at android.os.Handler.handleCallback(Handler.java:587)
   at android.os.Handler.dispatchMessage(Handler.java:92)
   at android.os.Looper.loop(Looper.java:130)
   at android.app.ActivityThread.main(ActivityThread.java:3701)
   at java.lang.reflect.Method.invokeNative(Native Method)
   at java.lang.reflect.Method.invoke(Method.java:507)
   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866)
   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:624)
   at dalvik.system.NativeStart.main(Native Method)
java.lang.NullPointerException
 
Last edited:

XverhelstX

Well-Known Member
Licensed User
Longtime User
SocialAuth will be update to 2.0 soon!
This will contain a complete new revised update with tons of new social platforms including:

  • Twitter
  • Facebook
  • MySpace
  • Linkedin
  • Yahoo
  • Google
  • SalesForce
  • Foursquare
  • Yammer
  • Runkeeper

- Access User Feeds and Photo Albums from Facebook and Twitter.
- Upload images to Facebook and Twitter.
- The library now also save user access token.
- The library now provides asynchronous methods to download content.
- SocialAuth now supports GoogleTV

Users who bought StandOut or SpeechRecognizer will receive the library in the coming weeks for free! People who bought SocialAuth will ofcourse receive a free update.

Regards,
Tomas
 

bluedude

Well-Known Member
Licensed User
Longtime User
Storage of authentication tokens

Hi,

How are tokens stored and can I get access to them?

Cheers,
 

XverhelstX

Well-Known Member
Licensed User
Longtime User
will it include checkin to foursquare?

Hi,

How are tokens stored and can I get access to them?

Cheers,


Unfortunately, I don't know this yet.
I will start developing v2.0 next week in my easter vacation and i'll answer these questions then. At the moment I don't know if checkin is supported yet or if you have access to the tokens.

Regards,
Tomas
 
Top