ashwin47 / Fb-badge

Facebook profile picture overlay/badge creater (unmaintained)
37 stars 41 forks source link

black image #16

Open muhad37 opened 7 years ago

muhad37 commented 7 years ago

hello dear im make all steps and facebook accept it but the script get black image !

tandinc commented 7 years ago

hello i have also tried it not working can admin help us

Please add a file named cred.php to the folder and add the following lines in them:

<?php $_YOUR_APP_ID = 'XYZ'; $_YOUR_APP_SECRET = 'XYZ'; $callback_url = ''; // example.com/login.php ?>

Install curl

sudo apt-get install curl

Make a facebook app and submit for "publish_actions" approvals for uploading pictures and feed poting.

Make sure you fill 'App domains' , 'Site URL' , 'Valid OAuth redirect URIs' accordingly in the app settings.

Note : You will get error during facebook login when facebook configration is not correct.\

i made the file name cred.php

i did everything but its not working

On Thu, Dec 29, 2016 at 7:50 AM, muhad37 notifications@github.com wrote:

hello dear im make all steps and facebook accept it but the script get black image !

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ashwin47/Fb-badge/issues/16, or mute the thread https://github.com/notifications/unsubscribe-auth/AXbSpr0uaclNYMJGMzbJBhrhJw9ibInKks5rMxHwgaJpZM4LXTE5 .

ashwin47 commented 7 years ago

Is it solved ?

tandinc commented 7 years ago

nop its not solved @ashwin47 help me

tandinc commented 7 years ago

cn i have ur fb id

monirulalom commented 7 years ago

@ashwin47

I have same issue. I am getting a black image named only .jpg which was supposed to be id.jpg


Warning: imagecreatefromjpeg(): gd-jpeg: JPEG library reports unrecoverable error: in C:\xampp\htdocs\fb\overlay.php on line 58

Warning: imagecreatefromjpeg(): 'http://graph.facebook.com//picture?width=320&amp;height=320' is not a valid JPEG file in C:\xampp\htdocs\fb\overlay.php on line 58

Warning: imagecopyresampled() expects parameter 2 to be resource, boolean given in C:\xampp\htdocs\fb\overlay.php on line 68

datasmurfen commented 7 years ago

A little to late maybe - but have you created a folder called cache :) ? I got it to work.