social

Launch Facebook Share Popup at Center of Screen

蓝咒 提交于 2019-12-02 19:31:08
The following code works well and launches a facebook popup on the screen, however this popup is not centered. <script type="text/javascript"> function fbs_click() {u=location.href;t=document.title;window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');return false;} <a href="http://www.facebook.com/share.php?u=<full page url to share" onClick="return fbs_click()" target="_blank" title="Share This on Facebook"><img src="images/facebookimage.jpg" alt="facebook share"></a> Here is the script that

AngularJS and meta tags in SPA mode?

佐手、 提交于 2019-12-02 17:43:48
Has anyone of you already figured out an elegant way on how to deal with meta tags with AngularJS in SPA mode? In a base template I have some default meta tags. For each route, each controller is loading a different view with different contents. Very normal. But how can I alter the meta tags for each of these pages? Furthermore some pages should have more meta tags, others less. For example pages with contents should have additional meta tags for social media sharing. Other sensitive pages should have the no-follow meta tags to forbid robots indexing the page. Curious how the experienced are

MongoDB as a queue service?

大城市里の小女人 提交于 2019-12-02 16:37:09
I would love to hear more about real application experience witn MongoDB as a queue service, if you used MongoDB for this purpose could you share your thoughts, as well as the environment in which it was used? Andrew Orsich I am using mongodb as a queue service for email sending. Soon it will work in following way: When a new message comes I store it in the mongodb. A background job then loads the message from mongodb via the atomic operation findAndModify and sets the flag Processing to true, so it does not process same message twice (because my background job runs multiple threads in

LinkedIn Button delay in apparition even after use of done() function?

不打扰是莪最后的温柔 提交于 2019-12-02 07:32:29
问题 LinkedIn Button is always showing, in my consideration, a weird attitude in comparison with other buttons. The issue this time, is the delay in apparition, even after use of done() function: function CreateNewsocial(str) { $(".dd_outer").fadeOut("slow"); CreateNewLikeButton(str); $.when(CreateNewTweetButton(str),CreateNewPlus1Button(str),CreateNewLinkedinButton(str),CreateNewSuButton(str)).done(function(){ $(".dd_outer").fadeIn('slow'); }); } Where: dd_outer is the wrapping div of social

What's the deal with “data:post.url”, “data:post.title”, etc

梦想与她 提交于 2019-12-01 00:07:16
Would someone be so kind as to explain what this data object is (if it is an object) and if there is any documentation on it. I was adding social sharing buttons to an app and decided I wanted to put a share to Blogger button on there, just for the fun of it. I could not find a page that had an official 'share to Blogger' button, like Facebook has an official 'like' button, or Twitter, a 'tweet' button. What I did find was this post on adding sharing buttons to a blog with the attached text file. I noticed that most, if not all of the html tags use the 'data:post.url' and 'data:post.title' to

How do I handle exceptions on Python Social Auth [closed]

只谈情不闲聊 提交于 2019-11-30 18:35:12
How do I handle this kind of exception AuthAlreadyAssociated on Python Social Auth ? All the answers I found are for Django Social Auth but it seems plenty has changed ever since they were written. pvieytes You can create a new middleware in your app's middleware.py : from social_django.middleware import SocialAuthExceptionMiddleware from social_core import exceptions as social_exceptions from django.http import HttpResponse class MySocialAuthExceptionMiddleware(SocialAuthExceptionMiddleware): def process_exception(self, request, exception): if hasattr(social_exceptions, exception.__class__._

Access Tokens Persistence Best Practices (iOS)

◇◆丶佛笑我妖孽 提交于 2019-11-30 03:45:55
Should access tokens for services like Twitter and Facebook be encrypted? In particular, should tokens be stored on the the device's Keychain vs. UserDefaults? What are some possible security issues that could arise if a user's device is stolen/taken This is what I have come up with so far. Pros of Keychain: Encrypted Cons: No way to clean up when user removed app Pros of UserDefaults: Kept inside the app. Cons: No encryption. Your UserDefaults 'con' needs amending: no encryption by default . You can encrypt the content yourself using e.g. CommonCrypto, but it needs additional work over

How do I handle exceptions on Python Social Auth [closed]

非 Y 不嫁゛ 提交于 2019-11-30 02:59:17
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . How do I handle this kind of exception AuthAlreadyAssociated on Python Social Auth ? All the answers I found are for Django Social Auth but it seems plenty has changed ever since they were written. 回答1: You can create a new middleware in your app's middleware.py : from social_django.middleware import

How to dynamically create “Share This buttons” with a custom URLs with a javascript function?

血红的双手。 提交于 2019-11-29 09:51:22
im using the http://sharethis.com/ buttons to give users on a website a simple way to share content. They have information on "custom buttons" here: http://help.sharethis.com/customization/custom-buttons It looks like to specify the URL, in the example all they have its just html like this: <span class="st_sharethis" st_url="http://mycustomurl.com" st_title="Sharing Rocks!" displayText="ShareThis"></span> But I need to be able to dynamically create buttons on the fly without reloading the page. So, In a flash application i'm building i have a "share button" that triggers a javascript function

all in one social share button javascript for websites? [closed]

北战南征 提交于 2019-11-29 08:39:13
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . nearly all of us use social media these days, and yes its very hard for me(a developer) to combine every single social button share into one. facebook twitter google plus linkedin anything else is a extra i found some good examples like https://github.com/dbushell/Socialite but is there any alternative that i