How do I display my own streaming Twitter home timeline with PHP? So that the connection remains open indefinitely?
I have a Twitter application and all the required keys and tokens.
I've been going over the Twitter documentation and playing around with several PHP libraries, but to no avail. I haven't found anything like a step-by-step tutorial, either.
Thanks!
Twitter provides a useful widget for this (displayed as an iFrame on your website)
log into twitter(in your web browser), Click the gear>settings>widgets then you can configure it to search for #yourtwitterhandle or #yourhashtag or both.
Related
I found a website today (www.mytwin.fun)
Whenever i comment this url anywhere on Facebook, it shows random image as preview. How do they do it?
I tried using Facebook graph api and Curl but it doesn't work without opening the site on a web browser.
Can anyone guide me to find a solution for this?
When I share a link on Facebook, if i'm sharing from web, everything is perfect, title, description and images are alright.
But when I try to share a link from an app (iOS) there is no thumbnail.
Example link:
http://www.bilemezsin.com/whatsapp-in-pip-ozelligi-tum-kullanicilara-acilir--28426?refli=8053
Open Graph Debugger Result:
Web Share Result on Facebook
App Share Result on Facebook
I tried with other apps, too, via their Facebook share buttons on my iOS 10, iPhone 7.
I can't see what I'm missing, is it a Facebook bug?
I have tried to change SEF links to actual links but nothing changed.
I have tried clearing cache from Open Graph debugger, again, nothing.
I have tried many other apps, but they all seem failing when sharing
is initialized from mobile app. Sharing the same URL from the solves
the missing image problem.
Can you try to share any content from any app to Facebook and tell me the result? It'll be appreciated.
Note: everything was working fine till today.
Thank you.
Yes, it's a Facebook bug. It seems it just started.
https://developers.facebook.com/bugs/1948522638736698/
Im looking for a simple Facebook share button that will open a new browser window and share the current page URL.
This was simple with Twitter using:
Im looking for something very similar for Facebook however it seems like with Facebook it is made purposely more difficult than it could be.
I have tried at least 10 different ways and always get the same error:
Can't load URL: The domain of this URL isn't included in the app's domains. To be able to load this URL, add all domains and sub-domains of your app to the App Domains field in your app settings.
I am already including the Facebook web API below the first body tag.... I have also gone into Facebook developer settings and correctly setup eve tying by entering the root domain I intend to share
Thankyou for any help
You could use the old simple sharer
Share on Facebook
My question is pretty simple actually... I wish to know if, and how, it is possible to check for the existence of an application on an iphone (twitter app for example) and then pop it open via PHP and/or javascript.
The process would go as follows:
User scans a QR code with his Iphone that links to the page
On the page, php or javascript does some magic to check if, and what, twitter applications exist.
The page then sends a custom URL scheme to open up the desired app (twitter:// for example).
Is this possible? Are there any examples of source code that display javascript/php doing this from within the context of an iphone?
Thank you for any help. :)
It would be imposible to check for the existence of an app from Safari.
You may launch an app using a link if the app has registered a protocol. For example, to launch the Facebook app and open it on the user profile you may link to fb://profile.
Here I found a list of some other iPhone apps protocols:
http://wiki.akosma.com/IPhone_URL_Schemes
Is there a way i could run php code in facebook fan page. Basically i want to show the producsts from this site:
http://ohlalashopping.co.uk/
on one of the tabs of fan page. I would love to see any possible solutions to achieve just that.
Edit:
Based on the answers provided, i just wanted to ask one more thing:
How do i add the iframe app to the fan page?
You can't execute PHP on Facebook. You can write a Facebook App or widget which accesses data from your php application. There is also a PHP Client API for Facebook which can be used to tie together Facebook and your PHP web application.
You'll need to write a Facebook application that displays products from your website, and then install that application to a tab on your fan page.
When an application is installed in a tab, Facebook will query the url you've specified in your application settings. This is different from the regular way of accessing applications in that users don't need to install the application to use it.
it is also possible you can make iframe application