Thanks for your prompt reply; Yes I have modify it in the past so that It can compatibles with html5 and add other social websites like twitter. I understand by this code ('.$social_url.') that it has a big function her to generate url automatically without editing facebook code everyday and add the articles' links.
that's ok, But now the problem is simple as this: facebook "like" and "share" and twitter "like" button don't pick the right image for the article. how that occurs? Ok, that's a good question: you have 20 images on your site or lets take exactly just on your article, you place a like button on your site. You see others start to “like” your content but with the wrong image (I mean I see this in facebook page; people share the content but with the wrong Img that has nothing to do with the article).
so, To solve this problem there is an only one method to do so. currently, I know it works but for snews I don't know how to add the function in snews file; so that it will helps us to do the work.
alright; this code above is usually put inside the head Tag, and I beleive it does an excellent work, to force facebook to pick the right image. But, now the problem is that I have to edit my INDEX file everytime I want to share some post or like it to be in facebook, I have to add the new image url, save, upload the file to the host, then everything is good.
<meta property="og:image" content="<URL_TO_YOUR_IMAGE>" />at the current time, when need some thing like $image_url = db('website').upload/'.$r['articleImage'].'/';
so we can have meta like this:
<meta property="og:image" content="'.$image_url.'" />[/code]
this should not work only with Uploaded images, but also images that is outside. I beleive to do so, we should create a new field in "create new article" page; to be easy to put image url for the article. sorry keyrocks alot, If i talked to much, Hhh, it's something like "I know what to do, but i don't know how". thanks In advance.