{"id":4146,"date":"2010-05-10T17:00:06","date_gmt":"2010-05-10T11:30:06","guid":{"rendered":"http:\/\/mobisoftinfotech.com\/?p=4146"},"modified":"2024-11-27T12:16:19","modified_gmt":"2024-11-27T06:46:19","slug":"android-fbconnect-facebook-connect-tutorial","status":"publish","type":"post","link":"https:\/\/mobisoftinfotech.com\/resources\/blog\/android\/android-fbconnect-facebook-connect-tutorial","title":{"rendered":"Android FBConnect: Facebook Connect Tutorial"},"content":{"rendered":"<blockquote>\n<p><strong>Update (19 Dec 2014) : Please note that this tutorial is now obsolete. Please use <a href=\"https:\/\/developers.facebook.com\/docs\/android\" target=\"_blank\" rel=\"noopener noreferrer nofollow\">facebook&#8217;s official tutorial<\/a> for reference.<\/strong><\/p>\n<\/blockquote>\n<p>Now a days social networking websites like facebook are becoming very popular, so integrating facebook with app has become a necessity to make your application popular. We are going to do the same through this tutorial. The Facebook Connect SDK provides code which third-party developers can embed into their applications to connect to their Facebook accounts and exchange information with Android apps. It\u2019s a way of embedding \u201csocial context\u201d to an Android app, according to Facebook.<\/p>\n<p>Create a Viewbased Application with name \u2018fbconnect-samples\u2019.<\/p>\n\n<p>\n<strong>Follow the following steps:<\/strong><br>\n<strong>1) Download Facebook Connect for Andro<\/strong>id<\/p>\n<ul>\n<li>1.1 First you have to set up new java project with fbconnect itself.<\/li>\n<li>1.2 We have to add all JARs and Library files as below.<\/li>\n<li>1.3 Import all files in the destination group folder.<\/li>\n<li>1.4 To test import all JAR and library in case any miss.And compile.<\/li>\n<\/ul>\n<p><strong>2) <\/strong><span style=\"font-size: 13px;\"><strong>Login to Facebook.<\/strong><\/span><\/p>\n<p><span style=\"font-weight: normal; font-size: 13px;\">After that go to Developers Page (<a href=\"\/\/www.facebook.com\/developers\/\" rel=\"nofollow\">http:\/\/www.facebook.com\/developers\/<\/a>) as shown below.<\/span><\/p>\n<p><strong>3) Register your application with Facebook<\/strong><\/p>\n<ul>\n<li>3.1 Click on Set up New Application Button in the upper right hand corner.<\/li>\n<li>3.2 Give Application name and click on create application button. Then you will see new application screen with detail including \u201cAPI key\u201dand \u201cAPI Secret Key\u201d<\/li>\n<\/ul>\n<p><strong>4) Now Save project (Command +S). Build and Run Project.<\/strong><\/p>\n<p><strong>5) Click on Fconnect Button and Facebook Login Dialog will appear.<\/strong><\/p>\n<p><strong>6) Login with your user name and Password. Click on publish To Feed.<\/strong><\/p>\n<p><strong>7) Wait for untill post to Wall Dialog pops up.<\/strong><\/p>\n<p><strong>8) The Msg on Facebook will something look like this.<\/strong><\/p>\n\n<p>\n<strong>Description<\/strong><br>\n<strong>1) Download Facebook Connect for Android<\/strong><\/p>\n<p><a href=\"https:\/\/developers.facebook.com\/resources\/facebook-android-sdk-current.zip\" rel=\"nofollow\">https:\/\/developers.facebook.com\/resources\/facebook-android-sdk-current.zip<\/a><br>\nJust go through the project. In particular, the \u201cConnect\u201d sample project. Sample Project gives demo of some of the functionality.<br>\n<strong> 1.1 First you have to set up new java project with fbconnect itself.<\/strong><br>\n&#8211; Unzip &#8220;fbconnect-android.zip\/api&#8221; into your workspace and then<br>\nImport Project to Eclipse.<br>\n-add External library &#8220;android.jar&#8221; into project&#8217;s build<br>\npath. I used android.jar from Android 1.6.<\/p>\n<p>-After it compiles &#8211; from eclipse&#8217;s menu choose File-&gt;Export-&gt;Java-<br>\n&gt;Jar file<\/p>\n<p>&#8211; select fbconnect project&#8217;s &#8220;src&#8221; directory as resource to export.<\/p>\n<p>&#8211; type in path and name of exported .jar (fbconnect.jar)<\/p>\n<p>&#8211; go to your project&#8217;s preferences and add fbconnect.jar into your<br>\nlibraries (in Java Build Path)<\/p>\n<p><strong>1.2 We have to add all JARs and Library files as below.<\/strong><\/p>\n<div id=\"attachment_904\" style=\"width: 584px\" class=\"wp-caption aligncenter\"><a href=\"\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2010\/05\/6th.jpg\"><noscript><img decoding=\"async\" aria-describedby=\"caption-attachment-904\" class=\"size-full wp-image-904\" src=\"\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2010\/05\/6th.jpg\" alt width=\"574\" height=\"356\"><\/noscript><img decoding=\"async\" aria-describedby=\"caption-attachment-904\" class=\"size-full wp-image-904 lazyload\" src=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20574%20356%22%3E%3C%2Fsvg%3E\" alt width=\"574\" height=\"356\" data-src=\"\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2010\/05\/6th.jpg\"><\/a><p id=\"caption-attachment-904\" class=\"wp-caption-text\">fbconnectjarfile<\/p><\/div>\n<p><strong>1.3 Import all files destination group folder.<\/strong> It should also look as shown below.<\/p>\n<div id=\"attachment_905\" style=\"width: 579px\" class=\"wp-caption aligncenter\"><a href=\"\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2010\/05\/7th.jpg\"><noscript><img decoding=\"async\" aria-describedby=\"caption-attachment-905\" class=\"size-full wp-image-905\" src=\"\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2010\/05\/7th.jpg\" alt width=\"569\" height=\"308\"><\/noscript><img decoding=\"async\" aria-describedby=\"caption-attachment-905\" class=\"size-full wp-image-905 lazyload\" src=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20569%20308%22%3E%3C%2Fsvg%3E\" alt width=\"569\" height=\"308\" data-src=\"\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2010\/05\/7th.jpg\"><\/a><p id=\"caption-attachment-905\" class=\"wp-caption-text\">fbconnectimplementation<\/p><\/div>\n<p><strong>1.4.To test import all JAR and library in case any miss and compile.<\/strong><\/p>\n<p><strong>2) <span style=\"font-weight: normal; font-size: 13px;\"><strong>Login to Facebook.<\/strong> <\/span><\/strong><br>\n<strong><span style=\"font-weight: normal; font-size: 13px;\">After that go to Developers Page (<a href=\"\/\/www.facebook.com\/developers\">\/\/www.facebook.com\/developers<\/a>\/) as shown below.<\/span><\/strong><\/p>\n<div id=\"attachment_901\" style=\"width: 593px\" class=\"wp-caption aligncenter\"><a href=\"\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2010\/05\/8th.jpg\"><noscript><img decoding=\"async\" aria-describedby=\"caption-attachment-901\" class=\"size-full wp-image-901\" src=\"\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2010\/05\/8th.jpg\" alt width=\"583\" height=\"322\"><\/noscript><img decoding=\"async\" aria-describedby=\"caption-attachment-901\" class=\"size-full wp-image-901 lazyload\" src=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20583%20322%22%3E%3C%2Fsvg%3E\" alt width=\"583\" height=\"322\" data-src=\"\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2010\/05\/8th.jpg\"><\/a><p id=\"caption-attachment-901\" class=\"wp-caption-text\">facebookdeveloperslogin<\/p><\/div>\n<p><strong>3) <\/strong><strong>Register your application with Facebook.<\/strong><\/p>\n<div id=\"attachment_902\" style=\"width: 574px\" class=\"wp-caption aligncenter\"><a href=\"\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2010\/05\/9th.jpg\"><noscript><img decoding=\"async\" aria-describedby=\"caption-attachment-902\" class=\"size-full wp-image-902\" src=\"\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2010\/05\/9th.jpg\" alt width=\"564\" height=\"395\"><\/noscript><img decoding=\"async\" aria-describedby=\"caption-attachment-902\" class=\"size-full wp-image-902 lazyload\" src=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20564%20395%22%3E%3C%2Fsvg%3E\" alt width=\"564\" height=\"395\" data-src=\"\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2010\/05\/9th.jpg\"><\/a><p id=\"caption-attachment-902\" class=\"wp-caption-text\">facebooksetapplication<\/p><\/div>\n<p><strong>3.1.Click on Set up New Application Button in the upper right hand corner.<\/strong><\/p>\n<p><strong>3.2. Give Application name and click on create application button. Then you will see new application screen with detail including \u201cAPI key\u201dand \u201cAPI Secret Key\u201d<\/strong><\/p>\n<div id=\"attachment_903\" style=\"width: 566px\" class=\"wp-caption aligncenter\"><a href=\"\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2010\/05\/10th.jpg\"><noscript><img decoding=\"async\" aria-describedby=\"caption-attachment-903\" class=\"size-full wp-image-903\" src=\"\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2010\/05\/10th.jpg\" alt width=\"556\" height=\"380\"><\/noscript><img decoding=\"async\" aria-describedby=\"caption-attachment-903\" class=\"size-full wp-image-903 lazyload\" src=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20556%20380%22%3E%3C%2Fsvg%3E\" alt width=\"556\" height=\"380\" data-src=\"\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2010\/05\/10th.jpg\"><\/a><p id=\"caption-attachment-903\" class=\"wp-caption-text\">facebookapikey<\/p><\/div>\n<p>Note : This application will not work until you provide your Facebook application\u2019s API keys.<br>\nNow to get started with actual coding:<\/p>\n<p>Append Following code in .xml file for UI Design<\/p>\n<pre>[sourcecode language=\"xml\" highlight=\"8,14,21,31\"]\n\n&amp;amp;amp;amp;lt;?xml version=&amp;amp;amp;amp;quot;1.0&amp;amp;amp;amp;quot; encoding=&amp;amp;amp;amp;quot;utf-8&amp;amp;amp;amp;quot;?&amp;amp;amp;amp;gt;\n&amp;amp;amp;amp;lt;LinearLayout xmlns:android=&amp;amp;amp;amp;quot;http:\/\/schemas.android.com\/apk\/res\/android&amp;amp;amp;amp;quot;\n\tandroid:orientation=&amp;amp;amp;amp;quot;vertical&amp;amp;amp;amp;quot; android:layout_width=&amp;amp;amp;amp;quot;fill_parent&amp;amp;amp;amp;quot;\n\tandroid:layout_height=&amp;amp;amp;amp;quot;fill_parent&amp;amp;amp;amp;quot; android:background=&amp;amp;amp;amp;quot;@drawable\/cyan&amp;amp;amp;amp;quot;\n\tandroid:gravity=&amp;amp;amp;amp;quot;center_horizontal&amp;amp;amp;amp;quot;&amp;amp;amp;amp;gt;\n\n\t&amp;amp;amp;amp;lt;com.codecarpet.fbconnect.FBLoginButton\n\t\tandroid:id=&amp;amp;amp;amp;quot;@+id\/login&amp;amp;amp;amp;quot;\n\t\tandroid:layout_width=&amp;amp;amp;amp;quot;wrap_content&amp;amp;amp;amp;quot;\n\t\tandroid:layout_height=&amp;amp;amp;amp;quot;wrap_content&amp;amp;amp;amp;quot;\n\t\tandroid:layout_margin=&amp;amp;amp;amp;quot;30dp&amp;amp;amp;amp;quot;\n\t\t\/&amp;amp;amp;amp;gt;\n\n\t&amp;amp;amp;amp;lt;TextView android:id=&amp;amp;amp;amp;quot;@+id\/label&amp;amp;amp;amp;quot;\n\t\tandroid:textColor=&amp;amp;amp;amp;quot;@drawable\/black&amp;amp;amp;amp;quot;\n\t\tandroid:layout_width=&amp;amp;amp;amp;quot;wrap_content&amp;amp;amp;amp;quot;\n\t\tandroid:layout_height=&amp;amp;amp;amp;quot;wrap_content&amp;amp;amp;amp;quot;\n\t\tandroid:layout_margin=&amp;amp;amp;amp;quot;30dp&amp;amp;amp;amp;quot;\n\t\t\/&amp;amp;amp;amp;gt;\n\n\t&amp;amp;amp;amp;lt;Button android:id=&amp;amp;amp;amp;quot;@+id\/permissionButton&amp;amp;amp;amp;quot;\n\t\tandroid:layout_width=&amp;amp;amp;amp;quot;wrap_content&amp;amp;amp;amp;quot;\n\t\tandroid:layout_height=&amp;amp;amp;amp;quot;wrap_content&amp;amp;amp;amp;quot;\n\t\tandroid:text=&amp;amp;amp;amp;quot;@string\/get_permission&amp;amp;amp;amp;quot;\n\t\tandroid:visibility=&amp;amp;amp;amp;quot;invisible&amp;amp;amp;amp;quot;\n\t\tandroid:paddingRight=&amp;amp;amp;amp;quot;30dp&amp;amp;amp;amp;quot;\n\t\tandroid:paddingLeft=&amp;amp;amp;amp;quot;30dp&amp;amp;amp;amp;quot;\n\t\tandroid:layout_margin=&amp;amp;amp;amp;quot;30dp&amp;amp;amp;amp;quot;\n\t\t\/&amp;amp;amp;amp;gt;\n\n\t&amp;amp;amp;amp;lt;Button android:id=&amp;amp;amp;amp;quot;@+id\/feedButton&amp;amp;amp;amp;quot;\n\t\tandroid:layout_width=&amp;amp;amp;amp;quot;wrap_content&amp;amp;amp;amp;quot;\n\t\tandroid:layout_height=&amp;amp;amp;amp;quot;wrap_content&amp;amp;amp;amp;quot;\n\t\tandroid:text=&amp;amp;amp;amp;quot;@string\/publish_to_feed&amp;amp;amp;amp;quot;\n\t\tandroid:visibility=&amp;amp;amp;amp;quot;invisible&amp;amp;amp;amp;quot;\n\t\tandroid:paddingRight=&amp;amp;amp;amp;quot;30dp&amp;amp;amp;amp;quot;\n\t\tandroid:paddingLeft=&amp;amp;amp;amp;quot;30dp&amp;amp;amp;amp;quot;\n\t\tandroid:layout_margin=&amp;amp;amp;amp;quot;30dp&amp;amp;amp;amp;quot;\n\t\t\/&amp;amp;amp;amp;gt;\n\n&amp;amp;amp;amp;lt;\/LinearLayout&amp;amp;amp;amp;gt;\n[\/sourcecode]<\/pre>\n<pre>[sourcecode language=\"java\" highlight=\"1,4,7,8,9,10,11,12,13,14,15\"]\nprivate static final String API_KEY = &amp;amp;amp;amp;quot;&amp;amp;amp;amp;quot;; \/\/ &amp;amp;amp;amp;quot;&amp;amp;amp;amp;lt;YOUR API KEY&amp;amp;amp;amp;gt;&amp;amp;amp;amp;quot;;\n\n\t\/\/ Enter either your API secret or a callback URL (as described in documentation):\n    private static final String API_SECRET = &amp;amp;amp;amp;quot;&amp;amp;amp;amp;quot;; \/\/ &amp;amp;amp;amp;quot;&amp;amp;amp;amp;lt;YOUR SECRET KEY&amp;amp;amp;amp;gt;&amp;amp;amp;amp;quot;;\n    private static final String GET_SESSION_PROXY = null;\n\nprivate FBSession mSession;\n\nif (GET_SESSION_PROXY != null) {\n            mSession = FBSession.getSessionForApplication_getSessionProxy(API_KEY,\n        GET_SESSION_PROXY, new FBSessionDelegateImpl());\n        } else {\n            mSession = FBSession.getSessionForApplication_secret(API_KEY,\n         API_SECRET, new FBSessionDelegateImpl());\n        }\n\n[\/sourcecode]<\/pre>\n<p>Here in fbconnect-samplesAppDelegate we have just declared mSession reference variable of type FBSession to keep track of the session and to check if session for current user exists or not.<\/p>\n<pre>[java highlight=\"1,2,3,4,5,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60\"]\nprivate void askPermission() {\n        Intent intent = new Intent(this, FBPermissionActivity.class);\n        intent.putExtra(&amp;amp;amp;amp;quot;permissions&amp;amp;amp;amp;quot;, new String[]{&amp;amp;amp;amp;quot;publish_stream&amp;amp;amp;amp;quot;});\n        this.startActivityForResult(intent, PERMISSION_REQUESTCODE );\n    }\n\n    @Override\n    protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n        super.onActivityResult(requestCode, resultCode, data);\n\n        switch (requestCode){\n        case PERMISSION_REQUESTCODE:\n            if (resultCode == 1)\n            {\n        \t\tmPermissionButton.setVisibility(View.INVISIBLE);\n        \t\tmFeedDirectButton.setVisibility(View.VISIBLE);\n            }\n        default:\n            return;\n        }\n\n    }\n\n    private void publishFeed() {\n    \tMap&amp;amp;amp;amp;lt;String, String&amp;amp;amp;amp;gt; params = new HashMap&amp;amp;amp;amp;lt;String, String&amp;amp;amp;amp;gt;();\n    \tparams.put(&amp;amp;amp;amp;quot;attachment&amp;amp;amp;amp;quot;, &amp;amp;amp;amp;quot;{\\&amp;amp;amp;amp;quot;name\\&amp;amp;amp;amp;quot;:\\&amp;amp;amp;amp;quot;Facebook Connect for Android\\&amp;amp;amp;amp;quot;,\n                        \\&amp;amp;amp;amp;quot;href\\&amp;amp;amp;amp;quot;:\\&amp;amp;amp;amp;quot;http:\/\/code.google.com\/p\/fbconnect-android\/\\&amp;amp;amp;amp;quot;,\n                         \\&amp;amp;amp;amp;quot;caption\\&amp;amp;amp;amp;quot;:\\&amp;amp;amp;amp;quot;Caption\\&amp;amp;amp;amp;quot;,\\&amp;amp;amp;amp;quot;description\\&amp;amp;amp;amp;quot;:\\&amp;amp;amp;amp;quot;Description\\&amp;amp;amp;amp;quot;,\n                           \\&amp;amp;amp;amp;quot;media\\&amp;amp;amp;amp;quot;:[{\\&amp;amp;amp;amp;quot;type\\&amp;amp;amp;amp;quot;:\\&amp;amp;amp;amp;quot;image\\&amp;amp;amp;amp;quot;,\\&amp;amp;amp;amp;quot;src\\&amp;amp;amp;amp;quot;:\\&amp;amp;amp;amp;quot;http:\/\n                         \/img40.yfrog.com\/img40\/5914\/iphoneconnectbtn.jpg\\&amp;amp;amp;amp;quot;,\n                         \\&amp;amp;amp;amp;quot;href\\&amp;amp;amp;amp;quot;:\\&amp;amp;amp;amp;quot;http:\/\/developers.facebook.com\/\n                           connect.php?tab=iphone\/\\&amp;amp;amp;amp;quot;}],\n                             \\&amp;amp;amp;amp;quot;properties\\&amp;amp;amp;amp;quot;:{\\&amp;amp;amp;amp;quot;another link\\&amp;amp;amp;amp;quot;:{\\&amp;amp;amp;amp;quot;text\\&amp;amp;amp;amp;quot;:\n                          \\&amp;amp;amp;amp;quot;Facebook home page\\&amp;amp;amp;amp;quot;,\\&amp;amp;amp;amp;quot;href\\&amp;amp;amp;amp;quot;:\n                            \\ &amp;amp;amp;amp;quot;http:\/\/www.facebook.com\\&amp;amp;amp;amp;quot;\n}\n}\n}&amp;amp;amp;amp;quot;);\n\n    \t\/\/ publish_stream extended permission is required to call Stream.publish\n    \tFBRequest.request().call(&amp;amp;amp;amp;quot;Stream.publish&amp;amp;amp;amp;quot;, params);\n    }\n\n    private void publishFeedWithPrompt() {\n    \tIntent intent = new Intent(this, FBFeedActivity.class);\n        intent.putExtra(&amp;amp;amp;amp;quot;userMessagePrompt&amp;amp;amp;amp;quot;, &amp;amp;amp;amp;quot;Example prompt&amp;amp;amp;amp;quot;);\n        intent.putExtra(&amp;amp;amp;amp;quot;attachment&amp;amp;amp;amp;quot;, &amp;amp;amp;amp;quot;{\\&amp;amp;amp;amp;quot;name\\&amp;amp;amp;amp;quot;:\\&amp;amp;amp;amp;quot;Facebook Connect for Android\\&amp;amp;amp;amp;quot;,\n                            \\&amp;amp;amp;amp;quot;href\\&amp;amp;amp;amp;quot;:\\&amp;amp;amp;amp;quot;http:\/\/code.google.com\/p\/fbconnect-android\/\\&amp;amp;amp;amp;quot;,\n                             \\&amp;amp;amp;amp;quot;caption\\&amp;amp;amp;amp;quot;: \\&amp;amp;amp;amp;quot;Caption\\&amp;amp;amp;amp;quot;,\\&amp;amp;amp;amp;quot;description\\&amp;amp;amp;amp;quot;:\\&amp;amp;amp;amp;quot;Description\\&amp;amp;amp;amp;quot;,\n                              \\&amp;amp;amp;amp;quot;media\\&amp;amp;amp;amp;quot;:[{\\&amp;amp;amp;amp;quot;type\\&amp;amp;amp;amp;quot;:\\&amp;amp;amp;amp;quot;image\\&amp;amp;amp;amp;quot;,\\&amp;amp;amp;amp;quot;src\\&amp;amp;amp;amp;quot;:\n                               \\&amp;amp;amp;amp;quot;http:\/\/img40.yfrog.com\n                                \/img40\/5914\/iphoneconnectbtn.jpg\\&amp;amp;amp;amp;quot;,\n                               \\&amp;amp;amp;amp;quot;href\\&amp;amp;amp;amp;quot;:\\&amp;amp;amp;amp;quot;http:\/\/developers.facebook.com\n                               \/connect.php?tab=iphone\/\\&amp;amp;amp;amp;quot;}],\\&amp;amp;amp;amp;quot;properties\\&amp;amp;amp;amp;quot;:\n                            {\\&amp;amp;amp;amp;quot;another link\\&amp;amp;amp;amp;quot;:{\\&amp;amp;amp;amp;quot;text\\&amp;amp;amp;amp;quot;:\\&amp;amp;amp;amp;quot;Facebook home page\\&amp;amp;amp;amp;quot;,\n                                  \\&amp;amp;amp;amp;quot;href\\&amp;amp;amp;amp;quot;:\\&amp;amp;amp;amp;quot;http:\/\/www.facebook.com\\&amp;amp;amp;amp;quot;\n}\n}\n}&amp;amp;amp;amp;quot;);\n        this.startActivityForResult(intent, MESSAGE_PUBLISHED);\n    }\n[\/java]<\/pre>\n<p>Define API key and Secret key with the keys you received while registering your app on facebook.<br>\n1. private static final String kApiKey = &#8220;7e835e394c0c8283fab2929108d6218f&#8221;;<br>\n2. private static final String kApiSecret = &#8220;eff16d8c6a2c6a9440d9ed63598ad501&#8221;;<\/p>\n<p>Validate session variable in requestDidLoad. If it doesn\u2019t exist then create the same for using API key and Secret key. For that, one needs to conform the protocol FBSessionDelegate in respective file. Also create a login button using FBLoginButton.<\/p>\n<pre>[java highlight=\"1,4,8,9,10,11,12,13,14,15,16,17,18,,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55\"]\nprivate class FBRequestDelegateImpl extends FBRequestDelegate {\n\n        @Override\n        public void requestDidLoad(FBRequest request, Object result) {\n\n            String name = null;\n\n            if (result instanceof JSONArray) {\n                JSONArray jsonArray = (JSONArray) result;\n                try {\n                    JSONObject jo = jsonArray.getJSONObject(0);\n                    name = jo.getString(&amp;amp;amp;amp;quot;name&amp;amp;amp;amp;quot;);\n                } catch (JSONException e) {\n                    Log.e(LOG, &amp;amp;amp;amp;quot;Login response error&amp;amp;amp;amp;quot;, e);\n                }\n            }\n            mLabel.setText(&amp;amp;amp;amp;quot;Logged in as &amp;amp;amp;amp;quot; + name);\n        }\n\n        @Override\n        public void requestDidFailWithError(FBRequest request, Throwable error) {\n            mLabel.setText(error.toString());\n        }\n    }\n\n  private class FBHasPermissionRD extends FBRequestDelegate {\n\n        @Override\n        public void requestDidFailWithError(FBRequest request, Throwable error) {\n            super.requestDidFailWithError(request, error);\n        }\n\n        @Override\n        public void requestDidLoad(FBRequest request, Object result) {\n            int hasPermission = 0;\n\n            if (result instanceof JSONArray) {\n                JSONArray jsonArray = (JSONArray) result;\n                try {\n                    JSONObject jo = jsonArray.getJSONObject(0);\n                    hasPermission = jo.getInt(&amp;amp;amp;amp;quot;publish_stream&amp;amp;amp;amp;quot;);\n                    if (hasPermission == 0) {\n                        mHandler.post(new Runnable() {\n                            public void run() {\n                                mPermissionButton.setVisibility(View.VISIBLE);\n                            }\n                        });\n                    }\n                    else\n                    \tmFeedDirectButton.setVisibility(View.VISIBLE);\n                } catch (JSONException e) {\n                    Log.e(LOG, &amp;amp;amp;amp;quot;Permission response error&amp;amp;amp;amp;quot;, e);\n                }\n            }\n        }\n[\/java]<\/pre>\n<p>This methos is automatically called when user is logged in using FBConnect SDK.<br>\nIn this method we get session for that user and it\u2019s uid which unique identifier for that user.<br>\nOnce FBSession session is avaiable, we can accesss all the APIs provided by Facebook.<br>\nFor now, we will see how to post user name and status on the facebook wall.<br>\nTo get Facebook username a request is send in which select query is written to get username using uid<\/p>\n<pre>[java highlight=\"8,9,10,11,12,13,14,15\"]\nprivate class FBDialogDelegateImpl extends FBDialogDelegate {\n        @Override\n        public void dialogDidFailWithError(FBDialog dialog, Throwable error) {\n            mLabel.setText(error.toString());\n        }\n    }\n\n    private void checkPermission() {\n        String fql = &amp;amp;amp;amp;quot;select publish_stream from permissions where uid == &amp;amp;amp;amp;quot;\n+ String.valueOf(mSession.getUid());\n        Map&amp;amp;amp;amp;lt;String, String&amp;amp;amp;amp;gt; params = Collections\n                      .singletonMap(&amp;amp;amp;amp;quot;query&amp;amp;amp;amp;quot;, fql);\n      FBRequest.requestWithDelegate\n         (new FBHasPermissionRD()).call(&amp;amp;amp;amp;quot;facebook.fql.query&amp;amp;amp;amp;quot;, params);\n    }\n[\/java]<\/pre>\n<p>Use publishFeed method to post message on the facbook wall. A dialog pops up with a message box to post on Wall.<\/p>\n<pre>[java language=\"highlight=1,2,3,4,5,6,7,8\"]\n    private void publishFeed() {\n\nMap&amp;amp;amp;amp;lt;String, String&amp;amp;amp;amp;gt; params = new HashMap&amp;amp;amp;amp;lt;String, String&amp;amp;amp;amp;gt;();\n    \tparams.put(&amp;amp;amp;amp;quot;attachment&amp;amp;amp;amp;quot;, &amp;amp;amp;amp;quot;{\\&amp;amp;amp;amp;quot;name\\&amp;amp;amp;amp;quot;:\\&amp;amp;amp;amp;quot;Facebook Connect for Android\n\n    \t\/\/ publish_stream extended permission is required to call Stream.publish\n    \tFBRequest.request().call(&amp;amp;amp;amp;quot;Stream.publish&amp;amp;amp;amp;quot;, params);\n    }\n[\/java]<\/pre>\n<p>Use sessionDidLogout method for logout from session.<\/p>\n<pre>[java highlight=\"1,2,3,4,5,6,7,8,9,10,11\"]\npublic void sessionDidLogout(FBSession session) {\n            mHandler.post(new Runnable() {\n                public void run() {\n                    mLabel.setText(&amp;amp;amp;amp;quot;&amp;amp;amp;amp;quot;);\n                    mPermissionButton.setVisibility(View.INVISIBLE);\n                    mFeedButton.setVisibility(View.INVISIBLE);\n                }\n            });\n        }\n\n    }\n\n[\/java]<\/pre>\n<p><strong>4) <\/strong><strong>Now Save project (Command +S). Build and Run Project.<\/strong><\/p>\n<p><strong> Simulator will look like as follows<\/strong><\/p>\n<div id=\"attachment_897\" style=\"width: 507px\" class=\"wp-caption aligncenter\"><a href=\"\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2010\/05\/5th.jpg\"><noscript><img decoding=\"async\" aria-describedby=\"caption-attachment-897\" class=\"size-full wp-image-897\" src=\"\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2010\/05\/5th.jpg\" alt width=\"497\" height=\"371\"><\/noscript><img decoding=\"async\" aria-describedby=\"caption-attachment-897\" class=\"size-full wp-image-897 lazyload\" src=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20497%20371%22%3E%3C%2Fsvg%3E\" alt width=\"497\" height=\"371\" data-src=\"\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2010\/05\/5th.jpg\"><\/a><p id=\"caption-attachment-897\" class=\"wp-caption-text\">facebookconnect<\/p><\/div>\n<p><strong>5) <\/strong><strong>Click on Fconnect Button and Facebook Login Dialog will appear.<\/strong><\/p>\n<div id=\"attachment_896\" style=\"width: 514px\" class=\"wp-caption aligncenter\"><a href=\"\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2010\/05\/1st.jpg\"><noscript><img decoding=\"async\" aria-describedby=\"caption-attachment-896\" class=\"size-full wp-image-896\" src=\"\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2010\/05\/1st.jpg\" alt width=\"504\" height=\"372\"><\/noscript><img decoding=\"async\" aria-describedby=\"caption-attachment-896\" class=\"size-full wp-image-896 lazyload\" src=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20504%20372%22%3E%3C%2Fsvg%3E\" alt width=\"504\" height=\"372\" data-src=\"\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2010\/05\/1st.jpg\"><\/a><p id=\"caption-attachment-896\" class=\"wp-caption-text\">facebooklogin<\/p><\/div>\n<p><strong>6) <span style=\"font-weight: normal; font-size: 13px;\"><strong>Login with your user name and Password<\/strong>. <\/span><\/strong><br>\n<strong><span style=\"font-weight: normal; font-size: 13px;\">Click on publish To Feed<\/span><\/strong><\/p>\n<div id=\"attachment_898\" style=\"width: 517px\" class=\"wp-caption aligncenter\"><a href=\"\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2010\/05\/2nd.jpg\"><noscript><img decoding=\"async\" aria-describedby=\"caption-attachment-898\" class=\"size-full wp-image-898\" src=\"\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2010\/05\/2nd.jpg\" alt width=\"507\" height=\"372\"><\/noscript><img decoding=\"async\" aria-describedby=\"caption-attachment-898\" class=\"size-full wp-image-898 lazyload\" src=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20507%20372%22%3E%3C%2Fsvg%3E\" alt width=\"507\" height=\"372\" data-src=\"\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2010\/05\/2nd.jpg\"><\/a><p id=\"caption-attachment-898\" class=\"wp-caption-text\">facebookloggedin<\/p><\/div>\n<p><strong>7) <\/strong><strong>Wait for untill post to Wall Dialog pops up.<\/strong><\/p>\n<div id=\"attachment_899\" style=\"width: 517px\" class=\"wp-caption aligncenter\"><a href=\"\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2010\/05\/3rd.jpg\"><noscript><img decoding=\"async\" aria-describedby=\"caption-attachment-899\" class=\"size-full wp-image-899\" src=\"\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2010\/05\/3rd.jpg\" alt width=\"507\" height=\"375\"><\/noscript><img decoding=\"async\" aria-describedby=\"caption-attachment-899\" class=\"size-full wp-image-899 lazyload\" src=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20507%20375%22%3E%3C%2Fsvg%3E\" alt width=\"507\" height=\"375\" data-src=\"\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2010\/05\/3rd.jpg\"><\/a><p id=\"caption-attachment-899\" class=\"wp-caption-text\">facebookfeed<\/p><\/div>\n<p><strong>8) <\/strong><strong>The Msg on Facebook will something look like this.<\/strong><\/p>\n<div id=\"attachment_900\" style=\"width: 533px\" class=\"wp-caption aligncenter\"><a href=\"\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2010\/05\/4th.jpg\"><noscript><img decoding=\"async\" aria-describedby=\"caption-attachment-900\" class=\"size-full wp-image-900\" src=\"\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2010\/05\/4th.jpg\" alt width=\"523\" height=\"326\"><\/noscript><img decoding=\"async\" aria-describedby=\"caption-attachment-900\" class=\"size-full wp-image-900 lazyload\" src=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20523%20326%22%3E%3C%2Fsvg%3E\" alt width=\"523\" height=\"326\" data-src=\"\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2010\/05\/4th.jpg\"><\/a><p id=\"caption-attachment-900\" class=\"wp-caption-text\">facebookmessage<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Update (19 Dec 2014) : Please note that this tutorial is now obsolete. Please use facebook&#8217;s official tutorial for reference. Now a days social networking websites like facebook are becoming very popular, so integrating facebook with app has become a necessity to make your application popular. We are going to do the same through this [&hellip;]<\/p>\n","protected":false},"author":17,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_s2mail":"yes","footnotes":""},"categories":[4],"tags":[89,90,63,77,64,78,91,93,92],"class_list":["post-4146","post","type-post","status-publish","format-standard","hentry","category-android","tag-android-facebook-tutorial","tag-android-fbconnect-tutorial","tag-facebook-api","tag-facebook-connect","tag-fbconnect","tag-fbconnect-android","tag-fbconnect-api","tag-fbconnect-tutorial","tag-fbcoonect-android-library"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Android FBConnect: Facebook Connect Tutorial - Mobisoft Infotech<\/title>\n<meta name=\"description\" content=\"Check out Android FBConnect Tutorials - A step by step guide useful for android developers to embed social context to an Android app.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/mobisoftinfotech.com\/resources\/blog\/android\/android-fbconnect-facebook-connect-tutorial\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Android FBConnect: Facebook Connect Tutorial - Mobisoft Infotech\" \/>\n<meta property=\"og:description\" content=\"Check out Android FBConnect Tutorials - A step by step guide useful for android developers to embed social context to an Android app.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/mobisoftinfotech.com\/resources\/blog\/android\/android-fbconnect-facebook-connect-tutorial\" \/>\n<meta property=\"og:site_name\" content=\"Mobisoft Infotech\" \/>\n<meta property=\"article:published_time\" content=\"2010-05-10T11:30:06+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-27T06:46:19+00:00\" \/>\n<meta name=\"author\" content=\"Kaushlendra Tripathi\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Kaushlendra Tripathi\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/mobisoftinfotech.com\/resources\/blog\/android\/android-fbconnect-facebook-connect-tutorial#article\",\"isPartOf\":{\"@id\":\"https:\/\/mobisoftinfotech.com\/resources\/blog\/android\/android-fbconnect-facebook-connect-tutorial\"},\"author\":{\"name\":\"Kaushlendra Tripathi\",\"@id\":\"https:\/\/mobisoftinfotech.com\/resources\/#\/schema\/person\/c0e2b700f1112cf17dcef00862d43708\"},\"headline\":\"Android FBConnect: Facebook Connect Tutorial\",\"datePublished\":\"2010-05-10T11:30:06+00:00\",\"dateModified\":\"2024-11-27T06:46:19+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/mobisoftinfotech.com\/resources\/blog\/android\/android-fbconnect-facebook-connect-tutorial\"},\"wordCount\":886,\"commentCount\":0,\"keywords\":[\"android facebook tutorial\",\"android fbconnect tutorial\",\"Facebook API\",\"Facebook Connect\",\"FBConnect\",\"FBConnect Android\",\"fbconnect api\",\"fbconnect tutorial\",\"fbcoonect android library\"],\"articleSection\":[\"Android\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/mobisoftinfotech.com\/resources\/blog\/android\/android-fbconnect-facebook-connect-tutorial#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/mobisoftinfotech.com\/resources\/blog\/android\/android-fbconnect-facebook-connect-tutorial\",\"url\":\"https:\/\/mobisoftinfotech.com\/resources\/blog\/android\/android-fbconnect-facebook-connect-tutorial\",\"name\":\"Android FBConnect: Facebook Connect Tutorial - Mobisoft Infotech\",\"isPartOf\":{\"@id\":\"https:\/\/mobisoftinfotech.com\/resources\/#website\"},\"datePublished\":\"2010-05-10T11:30:06+00:00\",\"dateModified\":\"2024-11-27T06:46:19+00:00\",\"author\":{\"@id\":\"https:\/\/mobisoftinfotech.com\/resources\/#\/schema\/person\/c0e2b700f1112cf17dcef00862d43708\"},\"description\":\"Check out Android FBConnect Tutorials - A step by step guide useful for android developers to embed social context to an Android app.\",\"breadcrumb\":{\"@id\":\"https:\/\/mobisoftinfotech.com\/resources\/blog\/android\/android-fbconnect-facebook-connect-tutorial#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/mobisoftinfotech.com\/resources\/blog\/android\/android-fbconnect-facebook-connect-tutorial\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/mobisoftinfotech.com\/resources\/blog\/android\/android-fbconnect-facebook-connect-tutorial#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/mobisoftinfotech.com\/resources\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Android FBConnect: Facebook Connect Tutorial\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/mobisoftinfotech.com\/resources\/#website\",\"url\":\"https:\/\/mobisoftinfotech.com\/resources\/\",\"name\":\"Mobisoft Infotech\",\"description\":\"Discover Mobility\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/mobisoftinfotech.com\/resources\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/mobisoftinfotech.com\/resources\/#\/schema\/person\/c0e2b700f1112cf17dcef00862d43708\",\"name\":\"Kaushlendra Tripathi\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/453a1cdfea34d532fac86bdfd809749e08f7c0b57d5ba506ce99c59e2108b11b?s=96&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/453a1cdfea34d532fac86bdfd809749e08f7c0b57d5ba506ce99c59e2108b11b?s=96&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/453a1cdfea34d532fac86bdfd809749e08f7c0b57d5ba506ce99c59e2108b11b?s=96&r=g\",\"caption\":\"Kaushlendra Tripathi\"},\"sameAs\":[\"http:\/\/www.mobisoftinfotech.com\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Android FBConnect: Facebook Connect Tutorial - Mobisoft Infotech","description":"Check out Android FBConnect Tutorials - A step by step guide useful for android developers to embed social context to an Android app.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/mobisoftinfotech.com\/resources\/blog\/android\/android-fbconnect-facebook-connect-tutorial","og_locale":"en_US","og_type":"article","og_title":"Android FBConnect: Facebook Connect Tutorial - Mobisoft Infotech","og_description":"Check out Android FBConnect Tutorials - A step by step guide useful for android developers to embed social context to an Android app.","og_url":"https:\/\/mobisoftinfotech.com\/resources\/blog\/android\/android-fbconnect-facebook-connect-tutorial","og_site_name":"Mobisoft Infotech","article_published_time":"2010-05-10T11:30:06+00:00","article_modified_time":"2024-11-27T06:46:19+00:00","author":"Kaushlendra Tripathi","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Kaushlendra Tripathi","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/mobisoftinfotech.com\/resources\/blog\/android\/android-fbconnect-facebook-connect-tutorial#article","isPartOf":{"@id":"https:\/\/mobisoftinfotech.com\/resources\/blog\/android\/android-fbconnect-facebook-connect-tutorial"},"author":{"name":"Kaushlendra Tripathi","@id":"https:\/\/mobisoftinfotech.com\/resources\/#\/schema\/person\/c0e2b700f1112cf17dcef00862d43708"},"headline":"Android FBConnect: Facebook Connect Tutorial","datePublished":"2010-05-10T11:30:06+00:00","dateModified":"2024-11-27T06:46:19+00:00","mainEntityOfPage":{"@id":"https:\/\/mobisoftinfotech.com\/resources\/blog\/android\/android-fbconnect-facebook-connect-tutorial"},"wordCount":886,"commentCount":0,"keywords":["android facebook tutorial","android fbconnect tutorial","Facebook API","Facebook Connect","FBConnect","FBConnect Android","fbconnect api","fbconnect tutorial","fbcoonect android library"],"articleSection":["Android"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/mobisoftinfotech.com\/resources\/blog\/android\/android-fbconnect-facebook-connect-tutorial#respond"]}]},{"@type":"WebPage","@id":"https:\/\/mobisoftinfotech.com\/resources\/blog\/android\/android-fbconnect-facebook-connect-tutorial","url":"https:\/\/mobisoftinfotech.com\/resources\/blog\/android\/android-fbconnect-facebook-connect-tutorial","name":"Android FBConnect: Facebook Connect Tutorial - Mobisoft Infotech","isPartOf":{"@id":"https:\/\/mobisoftinfotech.com\/resources\/#website"},"datePublished":"2010-05-10T11:30:06+00:00","dateModified":"2024-11-27T06:46:19+00:00","author":{"@id":"https:\/\/mobisoftinfotech.com\/resources\/#\/schema\/person\/c0e2b700f1112cf17dcef00862d43708"},"description":"Check out Android FBConnect Tutorials - A step by step guide useful for android developers to embed social context to an Android app.","breadcrumb":{"@id":"https:\/\/mobisoftinfotech.com\/resources\/blog\/android\/android-fbconnect-facebook-connect-tutorial#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/mobisoftinfotech.com\/resources\/blog\/android\/android-fbconnect-facebook-connect-tutorial"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/mobisoftinfotech.com\/resources\/blog\/android\/android-fbconnect-facebook-connect-tutorial#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/mobisoftinfotech.com\/resources\/"},{"@type":"ListItem","position":2,"name":"Android FBConnect: Facebook Connect Tutorial"}]},{"@type":"WebSite","@id":"https:\/\/mobisoftinfotech.com\/resources\/#website","url":"https:\/\/mobisoftinfotech.com\/resources\/","name":"Mobisoft Infotech","description":"Discover Mobility","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/mobisoftinfotech.com\/resources\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/mobisoftinfotech.com\/resources\/#\/schema\/person\/c0e2b700f1112cf17dcef00862d43708","name":"Kaushlendra Tripathi","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/453a1cdfea34d532fac86bdfd809749e08f7c0b57d5ba506ce99c59e2108b11b?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/453a1cdfea34d532fac86bdfd809749e08f7c0b57d5ba506ce99c59e2108b11b?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/453a1cdfea34d532fac86bdfd809749e08f7c0b57d5ba506ce99c59e2108b11b?s=96&r=g","caption":"Kaushlendra Tripathi"},"sameAs":["http:\/\/www.mobisoftinfotech.com"]}]}},"_links":{"self":[{"href":"https:\/\/mobisoftinfotech.com\/resources\/wp-json\/wp\/v2\/posts\/4146","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mobisoftinfotech.com\/resources\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mobisoftinfotech.com\/resources\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mobisoftinfotech.com\/resources\/wp-json\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/mobisoftinfotech.com\/resources\/wp-json\/wp\/v2\/comments?post=4146"}],"version-history":[{"count":22,"href":"https:\/\/mobisoftinfotech.com\/resources\/wp-json\/wp\/v2\/posts\/4146\/revisions"}],"predecessor-version":[{"id":32617,"href":"https:\/\/mobisoftinfotech.com\/resources\/wp-json\/wp\/v2\/posts\/4146\/revisions\/32617"}],"wp:attachment":[{"href":"https:\/\/mobisoftinfotech.com\/resources\/wp-json\/wp\/v2\/media?parent=4146"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mobisoftinfotech.com\/resources\/wp-json\/wp\/v2\/categories?post=4146"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mobisoftinfotech.com\/resources\/wp-json\/wp\/v2\/tags?post=4146"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}