Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Facebook Share

Asked Modified Viewed 3,566 times
H
HaRd_sToNe
H
Electronics Project
MyBlog
ThenITSok.com

shockDa world is HELL.............
.............n peoples are DEMONS
  • Member, joined since
  • Contributed 53 posts on the community forums.
  • Started 19 threads in the forums
  • Started this discussions
asked
Member

When I share the link of my website in facebook, it doesn't import the content from news post, when i share the link ..../news.php?readmore=4 on facebook, it imports the keyword of my website, so is there any otherway so that facebook will imports the contents form the news posts. I checked using the link of PHP-fusion.co.uk too and it results the same... any help?
0 replies

4 posts

P
PolarFox
P
  • Veteran Member, joined since
  • Contributed 1,633 posts on the community forums.
  • Started 29 threads in the forums
answered
Veteran Member

Where they said about content sharing?
0 replies
A
Ankur
A
Ankur 10
Hi! Its me, Ankur Thakur! smile
  • Veteran Member, joined since
  • Contributed 1,277 posts on the community forums.
  • Started 60 threads in the forums
answered
Veteran Member

I have modded my Website's news.php to alter the Meta Info for SEO and Facebook that you said. It doesn't look that nice but it do the enough work for me :)

Just edit your news.php and look for the Line :
echo "<!--news_pre_readmore-->";


Before this Line, add this Code :
// Set Meta Function used to Set the Description of Page to Empty.
      set_meta('description', '');
      set_meta('keywords', '');
// Add to Meta Function used to Set the Description of Page to page related - By Ankur
      $keywords = strip_tags($news_news);
      $skipwords = array("\n", "\r\n", "\r", " ", " : ", " the ", " The ", " in ", " this ", " This ", " at ", " will ", " it ", " It ", " is ", " to ", " for ");
      $keywords = str_replace($skipwords, ", ", $keywords);
      $description = str_replace(array("\n", "\r\n", "\r"), "", strip_tags($news_news));
      add_to_meta('keywords', $keywords);
      add_to_meta('description', $description);


Hope it works good for you...!
0 replies
H
HaRd_sToNe
H
Electronics Project
MyBlog
ThenITSok.com

shockDa world is HELL.............
.............n peoples are DEMONS
  • Member, joined since
  • Contributed 53 posts on the community forums.
  • Started 19 threads in the forums
  • Started this discussions
answered
Member

it didn't work...any its fine...thanks ankur
0 replies
C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
answered
Fusioneer

[Moved to Modification Requests forum]
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 4 posts
  • Votes 0 votes
  • Topic users 4 members

4 participants

C
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
H
H
Electronics Project
MyBlog
ThenITSok.com

shockDa world is HELL.............
.............n peoples are DEMONS
  • Member, joined since
  • Contributed 53 posts on the community forums.
  • Started 19 threads in the forums
  • Started this discussions
P
P
  • Veteran Member, joined since
  • Contributed 1,633 posts on the community forums.
  • Started 29 threads in the forums
A
A
Ankur 10
Hi! Its me, Ankur Thakur! smile
  • Veteran Member, joined since
  • Contributed 1,277 posts on the community forums.
  • Started 60 threads in the forums

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet