Syed I.R

India

lukoh.com

Age: 19

Programmer. Consultant. Security Researcher. Entrepreneur. Internet Marketer.

With over 5 years of experience.

May
8
awarded Nice Answer
Mar
9
awarded Constituent
Mar
9
awarded Caucus
Mar
9
comment How to authenticate facebook sdk without login dialog page?
Yes, It will get expired. But you can extend the token by making an API call and get long-lived token (60 days validity max), then you can save it to your database.
Feb
7
comment Why is Facebook PHP SDK getUser always returning 0?
Thanks........!
Feb
3
comment facebook scraper stops reading my meta data
My pleasure :) Also check out the other question (Marked as duplicate) as it has some good info.
Jan
26
answered facebook scraper stops reading my meta data
Jan
26
comment Facebook. api. How to publish photo on the user's wall
It will not get approved until you have enough ratings and user engagement, So you should probably try submitting after sometime.
Jan
24
comment Facebook. api. How to publish photo on the user's wall
You can fetch user's name by making a GET request to /me and then use $user_profile['name'] anywhere in $photoCaption and it'll output user's full name. Ex: $photoCaption = 'Hello ' . $user_profile['name'] . ', This is your caption' It should output Hello Rs Penki, This is your caption
Jan
24
comment Facebook. api. How to publish photo on the user's wall
Btw, The reason source isn't working for you is mostly because as per their docs, you have to setFileUploadSupport to true or 'fileUpload' => true in the fb object array you pass, check out one of my previous answers which has the working solution here: Click here
Jan
24
awarded Informed
Jan
24
comment Facebook. api. How to publish photo on the user's wall
You'll have to buy the certificate from either your host provider or domain provider or any other provider, But I'd highly suggest you to get one for cheap from namecheap.com as they have positiveSSL certificate which costs $1.99 (If you buy domain from them i think) from them. Most other providers sell expensive certificates which are good for big corporates or if doing any payment transactions through your application. Also changing privacy settings is not the right solution and I don't really recommend that. Just get that certificate as its cheap anyway.
Jan
24
comment Facebook. api. How to publish photo on the user's wall
And If you like the answer, you might wanna select this answer so this question is resolved and any visitors to this page will find the right answer, Just click on the check mark below the voting buttons on top left side of my answer.
Jan
24
comment Facebook. api. How to publish photo on the user's wall
I've added the code you requested in my answer. And the reason why it automatically switches to https is because your account's privacy settings have secure browsing turned ON and you need SSL certificate installed on your server for that domain in order for https to work and that is mandatory by fb and i think by default its ON for all users now on fb, So you really need that certificate, otherwise you'll loose users.
Jan
24
revised Facebook. api. How to publish photo on the user's wall
Added requested code.
Jan
24
comment Facebook. api. How to publish photo on the user's wall
No problem, Glad it worked for you :)
Jan
24
comment Facebook. api. How to publish photo on the user's wall
Pass redirect_uri to getLoginUrl function with the link you want the visitor to be redirected after allowing the app and it'll always redirect to that url.
Jan
24
comment Facebook. api. How to publish photo on the user's wall
Check my additional solutions I've added in my answer.
Jan
24
revised Facebook. api. How to publish photo on the user's wall
Added Additional Solutions.
Jan
24
comment Facebook. api. How to publish photo on the user's wall
That's weird. Try this: Change image key to url and then pass full url. Example: 'url' => 'http://www.padekime.wu.lt/plaukai/images/PlaukaiNeuzvedus.jpg' I tested this as well and it works fine for me. If this also doesn't work, then please post your error_logs.
1 2 3 4 5