Salesfroce-Vimeo how to connect via oauth? - salesforce

I want to embed vimeo videos in my Vf page. I am trying to embed this with the link but it says access denied. Means it needs and authorization.
Can any body please suggest me how to d this.

Sounds like the video isn't public? I'd have thought your real problem is some settings on Vimeo — I highly doubt you want your users to create accounts / login to Vimeo, and doubt you really need to store credentials for your own account either.
I've just created a public sites page to show that if the Vimeo settings are set up right that it can be embedded without a login.
The entire page code is below, note I had to add ="true" to the various full screen attributes in order for Salesforce to save the file correctly.
<apex:page >
<iframe src="http://player.vimeo.com/video/38991709?title=0&byline=0&portrait=0" width="400" height="225" frameborder="0" webkitAllowFullScree="true" mozallowfullscreen="true" allowFullScreen="true"></iframe>
<p>
ANGRY BEARD from TKSH! Films & Stop Motion on Vimeo.
</p>
</apex:page>
The video is not mine, it's just one I found on the Vimeo home page a moment ago

Related

Get full text based on partial text in cefsharp wpf

In my xml I have a cefsharp browser:
<cefsharpwpf:ChromiumWebBrowser LoadingStateChanged="browser_LoadingStateChanged" IsBrowserInitializedChanged="browser_IsBrowserInitializedChanged" x:Name="browser" Margin="0,0,0,-384.2"></cefsharpwpf:ChromiumWebBrowser>
In my c# I have a LoadingStateChanged which determines what site cefsharp is on. I tell cefsharp to go to the google login page where the user can then type in their google login information to be logged into google. When they are logged in, I want to be able to get their username from the google home page:
The part which says Welcome, {User Name}, I would like to get the text which is {User Name} but it doesn't have a specific value so I would have to look it up from the Welcome part. I have tried to search it up but I have found no answers. There is a .Find() but it doesn't work that way. Any help would be appreciated!
It looks like cefsharp browser has a method to get the page's HTML:
https://cefsharp.github.io/api/51.0.0/html/M_CefSharp_WebBrowserExtensions_GetSourceAsync.htm
You could try getting the HTML of the page after it loads, search for the Welcome string within it, and extract the part containing the name.

Not able to pull blog image in linkedin

I'm implementing custom share buttons for LinkedIn, Facebook etc. using Drupal 7 at the following URL:
http://commandpartners.com/blog/5-traits-of-an-entrepreneurial-mindset
After a user clicks on the LinkedIn button, a LinkedIn popup opens, with the correct title and description. However, the wrong image appears. I'm not able to understand why the correct blog image does not appear.
Where is LinkedIn pulling the image from?
It looks like maybe the image being used is an older image capture from your site. Did you have this older image on the site before? (the city skyline illustration)

single page application with angularjs and google+ button

I used this https://stackoverflow.com/a/20537386/744040 solution to define the content of the Facebook sharing window.
I can't find a similar solution for Google +.
I am working on this website http://sportnews.codeskeleton.com/ and if you go to an article page and try to G+, it'll take a wrong image as thumbnail and for the title it takes the AngularJS code : Sportnew7-24 - <% Page.title() %> (I use <% instead of {{ to avoid collision with blade ).
I tried the solution with schema.org but the google popin seems to ignore them.
Thank you
Google+ share details are populated by Google making an HTTP request to the specified URL and parsing the HTML. Since you are making a SPA site Google is just parsing the default template details without executing your JavaScript. If you want Google+ sharing details to work you will have to render the HTML with the title/image in it.
Google does have a method for telling crawlers about AJAX pages and how to crawl them but I can't speak to if the Google+ bot supports the standard.

Integrating Google Calendar in website Using IFrame with exact features

Is it possible to display Google calendar in a website using Iframe/other options, and it should have the Add/Edit/Delete events features in calendar in the website itself, should not go to google calendar.
Users will login using there gmail and password and the calendar gets displayed and the users can add/edit/delete events without going to google calendar.
Any help would be very helpful.
Thanks in advance.
following link may help you
Embed Gcalender on website
and you can add iframe like this
<iframe src="https://www.google.com/calendar/embed?src=mahajan.anil89%40gmail.com&ctz=Asia/Calcutta" style="border: 0" width="800" height="600" frameborder="0" scrolling="no"></iframe>
and you can programmatically change src attribute according to user

Which service to create a screenshot of a html page on web app and save it?

I am creating a web app(run on linux, PHP). In this application, after users log in, they will able to generate a postcard with their name on it.
Since the page of postcard is html(generated by cakephp), I want to take a screenshot of the central part of that page and save as an image.
Please recommend me any tool/plugin in order to do so. Free service/plugin is prefered.
http://code.google.com/p/wkhtmltopdf/
I have used the pdf part and it works great, there is a wkhtmltoimage download there that should help you with what you asking.

Resources