Jump to content

Twitter API-Facebook comments

- - - - -

  • Please log in to reply
5 replies to this topic

#1
cipher

cipher

    Learning Programmer

  • Members
  • PipPipPip
  • 39 posts
Hello,

I am making a website in which a user searches for a query and it shows results from twitter, I added a plugin to add comments on a search query using facebook login.

The problem is, If the user searches for ex. for "PHP" and he comments, then he searches for "HTML" he finds the same comments for the query "PHP", I need each query to have its own comments.

Thanks

#2
cipher

cipher

    Learning Programmer

  • Members
  • PipPipPip
  • 39 posts
Please people, If there's something you don't understand, please tell me and I shall clarify

#3
Alexander

Alexander

    It's Science!

  • Moderators
  • 4,124 posts
  • Location:Vancouver, Eh! Cleverness: 200
I believe I get what you are saying, although I have no clue how you are supposed to implement this facebook plugin.

Does the facebook plugin that allows commenting, accept a page or identification of a page, to differentiate between comments? If the facebook plugin is commenting to the same page then it would naturally show the same comments on any query, you should look in to the documentation and see in what way you can distinguish between pages.
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.

#4
cipher

cipher

    Learning Programmer

  • Members
  • PipPipPip
  • 39 posts
First of all thanks for replying,

The problem isn't with the plugin code, Because when a user performs a search and the website retrieves the data from twitter, The data appears on the same page, In other words, If you perform multiple searches, the new one will replace the old one using the same page, Hence, even If facebook comments plugin had a page identification property, There are no different pages for search.

#5
Alexander

Alexander

    It's Science!

  • Moderators
  • 4,124 posts
  • Location:Vancouver, Eh! Cleverness: 200
That is what I mean, if the plugin works by page (so you can comment on multiple pages and it all not being combined) then you must come up with your own solution, as it will always be on the search page.

You must look to the documentation of the comment plugin, to allow you to comment on your different search queries, based on a unique identification (i.e. your search query) and not page (search.php).

I just have no documentation on hand to suggest how to do this.
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.

#6
cipher

cipher

    Learning Programmer

  • Members
  • PipPipPip
  • 39 posts
Ok, thanks very much for your help, I will try to improvise a solution




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users