• Vivek Ukidve 7
  • NEWBIE
  • 0 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 0
    Replies
    i want to import facebook account related data to salesforce using apex code.
I have used  facebook toolkit3.0.

I have tried following code to get access token


public class Facebooklogin

   
    public string acesstoken{get;set;}
  public FacebookLogin()
  {
      string token;
     token=FacebookToken.getAccessToken();
     acesstoken=token;
   
  }

}
 its not working..

i cant find solution. so please anyone can help...  thanks in advance
Hello ,
           I am new to salesforce ,follwed steps describe in Mobile_SDK.pdf ,I stuck at this point ,gives me the following error...............

07-02 12:00:27.020: I/ClientManager:getRestClient(2842): No account of type com.my.mysmallapp.login found
07-02 12:00:27.020: D/AccountManagerService(332): bind attempt failed for Session: expectLaunch true, connected false, stats (0/0/0), lifetime 0.0, addAccount, accountType com.my.mysmallapp.login, requiredFeatures null
07-02 12:00:27.030: W/AccMgrCallback:run(2842): android.accounts.AuthenticatorException: bind failure
07-02 12:00:27.030: W/AccMgrCallback:run(2842):  at android.accounts.AccountManager.convertErrorToException(AccountManager.java:1563)
07-02 12:00:27.030: W/AccMgrCallback:run(2842):  at android.accounts.AccountManager.access$400(AccountManager.java:140)
07-02 12:00:27.030: W/AccMgrCallback:run(2842):  at android.accounts.AccountManager$AmsTask$Response.onError(AccountManager.java:1409)
07-02 12:00:27.030: W/AccMgrCallback:run(2842):  at android.accounts.IAccountManagerResponse$Stub.onTransact(IAccountManagerResponse.java:69)
07-02 12:00:27.030: W/AccMgrCallback:run(2842):  at android.os.Binder.execTransact(Binder.java:338)
07-02 12:00:27.030: W/AccMgrCallback:run(2842):  at dalvik.system.NativeStart.run(Native Method)
07-02 12:00:27.090: I/ActivityManager(332): START {flg=0x10000000 cmp=com.my.mysmallapp/.MainActivity} from pid 2842
07-02 12:00:27.150: I/WindowManager(332): SCREENLAYOUT_SIZE (1:small, 2:normal, 3:large, 4:xlarge) 2
07-02 12:00:27.180: I/ActivityManager(332): Displayed com.my.mysmallapp/.MainActivity: +323ms (total +32ms)
07-02 12:00:27.300: I/dun_service(203): received event(DUN_EVENT_USB_UNPLUG) in state(DUN_STATE_USB_UNPLUG)
07-02 12:00:27.310: D/WifiService(332): ACTION_BATTERY_CHANGED pluggedType: 0

...required some guidance ...thank u 

Hello ,
           I am new to salesforce ,follwed steps describe in Mobile_SDK.pdf ,I stuck at this point ,gives me the following error...............

07-02 12:00:27.020: I/ClientManager:getRestClient(2842): No account of type com.my.mysmallapp.login found
07-02 12:00:27.020: D/AccountManagerService(332): bind attempt failed for Session: expectLaunch true, connected false, stats (0/0/0), lifetime 0.0, addAccount, accountType com.my.mysmallapp.login, requiredFeatures null
07-02 12:00:27.030: W/AccMgrCallback:run(2842): android.accounts.AuthenticatorException: bind failure
07-02 12:00:27.030: W/AccMgrCallback:run(2842):  at android.accounts.AccountManager.convertErrorToException(AccountManager.java:1563)
07-02 12:00:27.030: W/AccMgrCallback:run(2842):  at android.accounts.AccountManager.access$400(AccountManager.java:140)
07-02 12:00:27.030: W/AccMgrCallback:run(2842):  at android.accounts.AccountManager$AmsTask$Response.onError(AccountManager.java:1409)
07-02 12:00:27.030: W/AccMgrCallback:run(2842):  at android.accounts.IAccountManagerResponse$Stub.onTransact(IAccountManagerResponse.java:69)
07-02 12:00:27.030: W/AccMgrCallback:run(2842):  at android.os.Binder.execTransact(Binder.java:338)
07-02 12:00:27.030: W/AccMgrCallback:run(2842):  at dalvik.system.NativeStart.run(Native Method)
07-02 12:00:27.090: I/ActivityManager(332): START {flg=0x10000000 cmp=com.my.mysmallapp/.MainActivity} from pid 2842
07-02 12:00:27.150: I/WindowManager(332): SCREENLAYOUT_SIZE (1:small, 2:normal, 3:large, 4:xlarge) 2
07-02 12:00:27.180: I/ActivityManager(332): Displayed com.my.mysmallapp/.MainActivity: +323ms (total +32ms)
07-02 12:00:27.300: I/dun_service(203): received event(DUN_EVENT_USB_UNPLUG) in state(DUN_STATE_USB_UNPLUG)
07-02 12:00:27.310: D/WifiService(332): ACTION_BATTERY_CHANGED pluggedType: 0

...required some guidance ...thank u