random image in comments?

Status
Not open for further replies.

seams

Newbie
Joined
Apr 23, 2016
Messages
8
Reaction score
2
i know a little speak english, i'm sorry.
How to make random image every share?

I'm waiting for your help, thanks.

Example:
f-u-t-b-o-l. com

aL4bMB.png
 
even i am curious to know.
i have also saw two different random image posting websites on comments.
 
There's an OG property in the HTML from where Facebook gets the images to show.

Your PHP should output the URL of a image and put it in that meta tag for each post. You can search DuckDuckGo.com the best search engine in the world for the correct format.

To see what image Facebook will detect, you need this tool: https://developers.facebook.com/tools/debug/

Work on your PHP code until the FB debug tool shows the right image. Pro tip: you need to set width and height for it to show the first time correctly.

Any more spoon fed than this and you'd be sitting on my lap eating froot loops.
 
So sad because i got block some #(4)

1.cronjob
2.script auto run on vps
 
Last edited:
Anyone got this script? Please share.
 
If you are planning to use this kind of script on your page, please don't. It's a spam and soon FB will take action on these kinds of post. Keep your page safe.

Thanks
 
tried it but it doesnt change on facebook. still the same title and thumbnail

So you need to :

- Force facebook to scrape again with the api
- or Don't allow facebook to cache your page (impossible, i mean there's a way but facebook will ignore your header requests)
 
Try something like this

some random web they use this script but i use php + cronjob

**Change http://your-site
when have people click on your web link script will auto scrape

and change your link preview on facebook


HTML:
<script type="text/javascript">
var url= "http://your-site";
$.ajax({
type: 'POST',
url: 'https://graph.facebook.com?id='+url+'&scrape=true',
    success: function(data){
       console.log(data);
   }
});

</script>

So do you have some similar script to this? Can you share it?
 
i tried the website from the screenshot but i am getting same image :D
Because i use free host and free sub domain which fb they limit time scrape per 1 ip

also i create many web in one ip web host that is my problem

most of you may saw many random web they used domain .com .net whatever

in my case i used 000webhost
 
Last edited:
Status
Not open for further replies.
Back
Top