I'm using Ionic. I am able to post to Facebook using the example:
facebookConnectPlugin.showDialog(
{
method: "feed",
picture:'https://www.google.co.jp/logos/doodles/2014/doodle-4-google-2014-japan-winner-5109465267306496.2-hp.png',
name:'Test Post',
message:'First photo post',
caption: 'Testing using phonegap plugin',
description: 'Posting photo using phonegap facebook plugin'
},
function (response) { alert(JSON.stringify(response)) },
function (response) { alert(JSON.stringify(response)) });
But the picture in that example is a remote picture. I'm trying to post a picture that's local in the www folder. I tried picture: "www/some-image.jpg" or picture: "./some-image.jpg. But I just get error: {"errorCode": "100", "errorType": "null", "errorMessage": "null"}
Q1: Is it possible to post a local picture to Facebook via showDialog?
Q2: If answer to Q1 is yes, do I need to open the .jpg or .png using a file opener (like fileopener2)?
I'm using Ionic. I am able to post to Facebook using the example:
But the picture in that example is a remote picture. I'm trying to post a picture that's local in the
www
folder. I triedpicture: "www/some-image.jpg"
orpicture: "./some-image.jpg
. But I just get error:{"errorCode": "100", "errorType": "null", "errorMessage": "null"}
Q1: Is it possible to post a local picture to Facebook via showDialog? Q2: If answer to Q1 is yes, do I need to open the
.jpg
or.png
using a file opener (like fileopener2)?