Facebook API Share Image


Social networking is the practice of expanding the number of one's business and/or social contacts by making connections through individuals, often through social media sites such as Facebook, Twitter, LinkedIn and Google+.


Facebook Developments 
https://developers.facebook.com/apps/
https://developers.facebook.com/tools/debug/

CODE:
index.php

<div>
<a href="https://www.facebook.com/sharer/sharer.php?src=bm&u=http://example.com.au/share/Student-Visa">Share On Facebook</a>
<a href="https://www.facebook.com/sharer/sharer.php?src=bm&u=http://example.com.au/share/SKILLED-INDEPENDENT-SUBCLASS-189-VISA">Share On Facebook</a>
</div>


share_details.php

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta property="og:type" content="article" />
<meta property="og:url" content="http://example.com.au/share/Student-Visa" />
<meta property="og:title" content="Student Visa" />
<meta property="og:description" content="Student Visa is the only visa where processing time and complexities are the least" />
<meta property="og:image" content="http://example.com.au/images/userimage1456126983.jpeg" />
<meta property="og:image:width" content="580" />
<meta property="og:image:height" content="580" />
<meta property="fb:app_id" content="123456789" />
<title>News Title</title>
</head>
<body>
<img src="http://example.com.au/images/userimage1456126983.jpeg"/>
</body>
</html>

Screenshort

Step:1


Step:2



Step:3


Demo:

Share on Google Plus

About Pukar

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment

0 comments:

Post a Comment