Z
Z
zyaleniyeg2012-04-11 15:58:15
Facebook
zyaleniyeg, 2012-04-11 15:58:15

Adding a photo with a link and an icon?

Gentlemen - help plz ... already fucked up.
The client wants to post a link to the photo as on Instagram
clip2net.com/s/1NsAx
when after on facebook I use the php-SDK
developers.facebook.com/docs/reference/api/photo/
if you believe him, then both the link and the icon can be transferred ...
the photo is fasting normally, but there is a problem with the link :( maybe someone has come across it - it’s already fucked up :(
code:

$params = array(<br/>
 'source' =&gt; '@' . $photo,<br/>
 'message' =&gt; $message,<br/>
 'icon' =&gt; '@'.$_SERVER['DOCUMENT_ROOT'].'/img/logoicon.png',<br/>
 'created_time'=&gt;date('c'),<br/>
 'link' =&gt; 'http://'.$_SERVER['SERVER_NAME'].$link<br/>
 );<br/>
 $ret_obj = $facebook-&gt;api('/me/photos', 'POST', $params);<br/>

params by log
[source] => @/home/projects/scavenger/html/cached/fb_member_1_magic_jack_.jpg
[message] => gegerge er ger geg
[icon] => @/home/projects/scavenger/html/img/logoicon .png
[created_time] => 2012-04-11T13:57:32+03:00
[link] =>
scavenger.dev/submissions/browse/show/737.html and icon :(

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
mayorovp, 2012-04-13
@mayorovp

Something I do not understand, do you have a screenshot that accurately displays the results of the same query? Otherwise, I didn’t find either “test” or “Scavenger registration project Photos” in the code.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question