Facebook Sharer URL via App ID and Phonegap

I saw an example online about using the sharer.php page, with which facebook also allows me to track who uses this via the APPID in the facebook developer app section.

Here is my example.

$(document).on('click', '.fb', function(e) { window.open.href = 'http://www.facebook.com/sharer.php?s=100&p[title]=' + encodeURIComponent('this is a title') + '&p[summary]=' + encodeURIComponent('description here') + '&p[url]=' + encodeURIComponent('http://www.nufc.com') + '&p[images][0]=' + encodeURIComponent('http://www.somedomain.com/image.jpg') }); 
+4
source share
1 answer

Are you getting an error while trying this?

Be sure to select the white list of all the servers that you are accessing. I believe you can open it for testing. http://docs.phonegap.com/en/1.9.0/guide_whitelist_index.md.html

0
source

Source: https://habr.com/ru/post/1483969/


All Articles