Add tweet button on wordpress blog - twitter

I have been trying to put twitter's new tweet button on my wordpress blog. I have tried code provided on official twitter website, and couple of wordpress plugins to add tweet button on the blog. But on every try I am running into same issue. When I click on tweet button it goes to the twitter website but says
url' parameter does not contain a valid URL.
Could anyone please suggest me the way out for the same. thanks in advance!

Use this plugin: http://wordpress.org/extend/plugins/wp-tweet-button/
It works fine for me, and has couple of options to choose from.

hmmm.....I don't know why this is happening but I think you are using a local server and your url contains some ip address so that when you are clicking on the tweet button it will take your ip address also to connect with tweer site.
So it make url invalid, work on live site I think it will work.all the best.....

Related

Publish Google Sheet

I created a random sheet and then clicked publish to publish this google sheet publicly but for some reason when i click on my public link after signing out it will ask me to login again. This did not happen in the past. Has something changed with google sheet?
FYI i am not restricting access to anything or anyone i am publishing this as a public link but not able to access the link if i am not signed in.
I suggest others try it out and see if they get a different result or maybe there is restrictions on my account.
This is an ongoing issue that started yesterday. At my workplace, we are using it for years now. But suddenly the scripts started failing. HTML output is working fine but CSV, TSV formats are asking for login.
A temporary fix would be to change the sharing permission of the spreadsheet to Anyone on the Internet.
Issues started popping up on google support:
https://support.google.com/drive/thread/83705117?hl=en
https://support.google.com/docs/thread/83645178?hl=en
https://support.google.com/docs/thread/83744355?hl=en
https://support.google.com/drive/thread/83700244?hl=en
No solution or reply from the google team yet!!
not to sure, but when your posting, there should be a new option that lets you grant and restrict access. from the screen shot you provided, it should be somewhere in the "published content & settings" section at the bottom of the publish screen. once you do that it should open the access options and youll be able to allow anyone to view the document. The link you provided is still coming up as access denied. Let me know if you need more help and ill provide some pics and more details.
I can confirm that we experienced the same error yesterday - out of the blue our export scripts started failing.
We only experience this with CSV/TSV published Google Sheets, and we also made sure that there are no viewing restrictions whatsoever. If I publish as a website, I can still open that anonymously in a browser.
This is however useless as the data was being parsed as CSV.
A workaround is the following:
Click the Share button.
Click get link section of the modal.
Make sure "Anyone with the link" is selected.
Copy the URL and click done.
Post-fix URL with: /export?format=csv&gid=0
If you need a specific sheet, find the gid by clicking on that sheet in your browser and copying the gid from your browser's url. gid=0 is the first sheet.
Adjust all of your bash scripts with the new URL.
Enjoy!
enter image description here

how to create An app in twitter?

I'm new in this ... I followed this steps
http://iag.me/socialmedia/how-to-create-a-twitter-app-in-8-easy-steps/
but i don't know what's the exact URL i should write it ? i found different URLs on different examples .. but i don't have one !
and i read if i don't have URL yet i should put placeholder !! what's the placeholder ?
and what's the callback URL
i hope someone help me on this .
While creating app in twitter you have to specify your website URL, if you dont have any you can put any URL which refers your identity (like linkedIn public profile URL).
Coming to the callback URL, it tells where to navigate right after login with twitter credentials in your app.
Hope it helps you.
Create a Twitter Appliation here with the Read and write access permissions and Organization or personal website for callback url in Application.

Placement of Twitter Meta Tag Failing Site Verification

So, I am throwing a hail Mary pass here, to see if anyone can catch it. I checked on Twitter and came up empty.
I added the following meta tag to the head of a website:
<meta property="twitter:account_id" content="3XXXXXXXX" />
I then confirmed that the tag is in the source HTML in between the head tags
Then from inside my account panel on Twitter there is a "Verify website" tool.
When I enter the URL and click "Verify website, I get the following:
Website ownership cannot be verified. Please add the metatag to your site.
Perhaps someone else has grappled with this and solved the issue? Thanks
I had the same issue. I assume your websites is "https" to fix this you need to temporarily set your website not to display "http" in the address. Once you hit verify it should work and you can change it back to "https" when verified.
Solved!
So I tried the following, to no avail:
Remove the middleware to redirect http:// URLs to https:// URLs (such that the site runs on HTTP without redirecting to HTTPS).
Unfortunately, this change did NOT seem to work by itself... so we clicked on the "Help?" button at the upper-right of the ads.twitter.com account dashboard.
After explaining the issue to the Twitter support staff, they were able to change something in their system (likely, invalidate some cached record somewhere) and the validation successfully went through. So don't be afraid to reach out to Twitter for support!
After verification, we were able to re-introduce the HTTP -> HTTPS middleware on our site, while remaining verified with Twitter.

custom url schemes in twitter posts it does not work

I am an ios app developer. We have implemented a custom URL scheme 'my_app://section_name' or so where if the link is opened in the user's mobile browser, it will redirect the user to a specific section in the app.
We would like to be able to tweet these URLs and have users on their mobile device click on them to open up the app, however it just can click once
(when you click close , maybe you click wrong then you want to click it second but it does not work )
I hope this isn't too silly of a question. Thanks
Make sure to check the tweet body after it have been posted.
This may be due of an URL shortener, especially if the tweet is posted from the iOS 5 Twitter framework.
I'm having a similar issue with url schemes. We can include them in emails and text messages, and they highlight and work properly.
Unfortunately, when we do the same with a tweet, the iOS Twitter client fails to recognise the special URL scheme and so the user cannot tap on it to open our app.
Pretty big oversight, methinks. Anyone else had any joy including special URL scheme links in tweets?
A solution that you should consider involves not sharing the URI scheme directly, but rather creating a page on your web server to handle this. In fact, if you want to be able to share full URI schemes with paths, you're better off building a web server to dynamically generate a page with a URI scheme redirect.
This is a over-simplified representation of what we built at Branch. This includes some code to get you started though the web server will require a bit of setup not described here.
instead of testapp://some.data.here, you'll link to http://yoursite.com/hosted-redirect/some.data.here.
your server should listen at the route /hosted-redirect, grab some.data.here and build the following page (body here):
(source: derrrick.com)
So your server will have to generate and respond with this page, filling in some.data.here, anytime http://yoursite.com/hosted-redirect/some.data.here is requested.
A lightweight node app could do this with a single file.

Link on Facebook with custom prefix/protocol (like myapp://blahblah)

I added to my iOS application option to detect and response to custom URL schemes to launch application ( http://iosdevelopertips.com/cocoa/launching-your-own-application-via-a-custom-url-scheme.html ).
Link is working perfectly on different sites (using href), but I'm having problem with Facebook. If I'm trying to post link (using Graph API) which looks like:
myapp://blabla
Facebook return error:
The url you supplied is invalid
And for feed with link return
link URL is not properly formatted.
I can't just post url as a message because it's not being detected as a URL and appear like text only.
Is there any way to post to Facebook wall with custom links?
Edit:
I have an idea, but I don't know if it gonna work. Putting
myapp://blabla directly into address field in mobile browser is launching application so probably accessing an webpage (like http://www.mywebpage/myapp) with only redirection to
myapp://blabla gonna work too, but is Facebook gonna accept that link?
I think your suggestion in the edit is the correct method, and should work. However applications like spotify seem to use an intersticial page which fires the "app link" with javascript, the advantage to this approach is that you can use that page to "sell" the app to users who don't have it and also provide lovely open graph tags for people who want to share it.

Resources