C# .NET - facebook share integration - Asked By abinav shankar on 30-May-12 03:15 AM

Hi

I want to integrate fb Share in my application i have included the following code and getting the link of my page alone but i need to get the description and title as well in my FB share how to do it

I tried including property in the meta tag still i cant get the title

<a name="fb_share"></a>
      <script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share"
          type="text/javascript">
      </script>

Somesh Yadav replied to abinav shankar on 30-May-12 04:36 AM

Look into RPXNow: https://rpxnow.com/

It'll allow you to integrate your app with a whole range of OpenId providers, and i believe with Facebook amongst them, with a nice tidy API. If you only want facebook as a provider, you may want to look elsewhere however

dipa ahuja replied to abinav shankar on 30-May-12 07:11 AM
you can add this code to share to any social networking sites from http://www.addthis.com/ 
 
 

<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style addthis_32x32_style">
<a class="addthis_button_preferred_1"></a>
<a class="addthis_button_preferred_2"></a>
<a class="addthis_button_preferred_3"></a>
<a class="addthis_button_preferred_4"></a>
<a class="addthis_button_compact"></a>
<a class="addthis_counter addthis_bubble_style"></a>
</div>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=xa-4da1a59d51aa80c1"></script>
<!-- AddThis Button END -->
 
 
Code for Like
 
To provide like button download the social network control from codeplex
 
<http://socialnetworkcontrol.codeplex.com/>
 
add the dll in you website by add reference and you will get control on your tool box like this :
 
<cc2:FacebookLike ID="FacebookLike2" runat="server" />
 
hope this will help you!
 
 
Jitendra Faye replied to abinav shankar on 31-May-12 10:49 AM
You can use SDK for this-

Follow this link here you will get example-

http://facebooksdk.codeplex.com/

http://ntotten.com/2010/09/dynamic-objects-and-the-facebook-c-sdk/


Hope this will help you