Symfony feature to take screenshots of pages that require user to login - symfony

I have an app built with Symfony 2. It has a bunch of pages that are secured and require user to login. Once the user is logged in I want there to be a "Download Screenshots" Button. When they click that button, I would like a process to go through all the pages of the site and take screenshots. What tool should I use to take the screenshots? Thanks!

I haven't used this so I can't speak for how well it works, but check out https://github.com/microweber/screen

Related

Wordpress login FIRST then SSO to 3rd party platform

I am not a developer but not a total noob either.
I need some advice on how to implement the correct solution to my problem, and your help would be VERY much appreciated.
I have a WP site (www.mysite.com), I have the my users signing up on WP and once signed in they can navigate the site and change and check various things on their front-end user profile page. Now the problem comes in where I am using a 3rd party LMS platform running on a subdomain where I have courses my users can take (learn.mysite.com) - This platform at the default level requires users to sign up, and then via a shortcode placed on the WP user profile page it generates a login form. They then need to login to that platform from the main site and get redirected to the LMS platform. The problem is I DO NOT want my users to sign up again and have to 'login' a 2nd time, they should be able to 'login' by clicking a simple button on their profile page and get redirected (SSO) from WP to the application. i.e The application should realize the user exists in my WP databse and 'let them in'
Now, The 3rd party platform does offer SSO support for SAML 2.0 and LDAP. So how can I make this work with my WP site as I need it explained above?
In short What I need:
Users login to my WP site, with their WP login details, WITHOUT being automatically redirected to 3rd party platform. THEN, when they choose to start learning click a simple link/button (placed on their profile page for example) and get passed seamlessly (SSO) to the platform?
I hope this makes sense, and how can I achieve this?

Adding multiple facebook page tabs from single facebook application using php

I have created a facebook application.
Now i want that using this application i need to add multiple pagetabs in a page.
and all of this i want to do in php
I have completed following steps
1) Logged in to facebook using my php script and got authenticaticationc code for managing pages.
2) Retrieved the list of pages i have in loged in users profile.
Now i don't know how to add a page tab in facebook programmatically.
I know there is a manual option and that is in applications settings to add a page tab
but I want to add it Programmatic using php.
Any help will be very appreciated.
regards
Applications are allowed to have one Page Tab. So if you need to have multiple tabs for same app on single page where is no way to achieve this.
If you desire to add tabs for other applications you just need to issue POST with page access_token (from accounts connection of user who is admin of that page) request to:
https://graph.facebook.com/PAGE_ID/tabs?app_id=APPLICATION_ID&access_token=...
You need either repeat that step for every APPLICATION_ID you want to be added as tab or Batch requests. Read more on page tabs creation in documentation for page object

Page Administration & Open Graph

I'm an Admin for this page
http://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fwww.westberks.gov.uk%2Findex.aspx%3Farticleid%3D23789
and I've also specified that my App can administer it too. I've Liked this page so I thought I should be able to access the admin screen for the page but I can't seem to. Any ideas on how I access the admin screen for this page in FB, so I can manually publish updates?
Additionally, when I try to update page programmatically I get the message
(OAuthException) (#200) The user hasn't authorized the application to perform this action
but the page has my App listed here
http://graph.facebook.com/10150303466842688
This was definitely a bug rather than a programming or setup issue. The bug has been marked fixed by Facebook as of 1/18/2012 and everything now works as it is supposed to! Bug report:
http://developers.facebook.com/bugs/308356579205492?browse=search_4f0f1475c470b2076799347
Until this recent fix, there was a problem where OpenGraph pages did NOT allow the admins of those pages to retrieve page access tokens for them. Which means they were locked out of posting "as the page" and apparently also locked out of the Admin area for their own pages as well.
I know that this is fixed for me now with this bugfix, and hopefully it will also be fixed for everyone else.
You will need to ask for manage_pages, read_stream and publish_stream. Once your admin accepts those permissions, the app can call me/accounts on the Graph (play here https://developers.facebook.com/tools/explorer). In there will be a list of all the pages they admin. In each listing will be a unique access token. This is called the page access token. Using that token you should be able to read and write to the me/feed for that page.

Drupal: How to remove login to make site passwordless for users?

I want to remove the login page from a Drupal site so that the site is open and public-facing. Only the admin would need to login. Does anyone know how this can be accomplished?
You can't remove the login page, because the administrators will need one to login.
You could, however, give anonymous users access to whatever you like. So that you don't have to be logged in the use any feature of the site. If users are to create content or do other stuff, you will need for them to login, so that you can tell them apart.
Edit
To configure the access control, you'll have to go to admin/user/permissions, where you can select which permissions anonymous users (and other user roles) should have.
Drupal 7
You do not need to remove the login page to make the site open and public facing. Any browser to your site would be given an anonymous user role by default. So any content that is visible to the anonymous role (which can be altered by going to admin/user/permissions) and published can be seen. As long as your website is not in maintenance mode.
If your looking to move the login block that is on the front page of most new Drupal installations you'll have to go to admin/structure/blocks and change the setting there.
I looked through permissions, but nothing helped me to make the main site page available instead of the login page.
Open Features (site.org/features), change Site settings -> Site work mode from Only private access to Open access (moderated registration) (sorry, the names were translated back from Russian).
This has solved my problem. I made private access to the site before and forgot about that. I wanted to disable new users registration (because of mass spam). This can be done through admin/user/settings -> Only site administrators can create new user accounts. [I use Drupal 6, but Drupal 7 works same with this setting]. [UPDATE: it seems, at least for my somewhat outdated setup, that these two Drupal options contradict each other, when I allow only administrators to add users, the private mode turns on automatically :( ]

Drupal Facebook connect functionality

I have tried to implement Drupal connect with facebook functionality via fbconnect module. I have installed and set up the plugin. When I click on the facebook button the new popup window is opened and it requires my facebook credentials. After I enter those, instead of just simply logging in to my site, drupal asks of me to create a new account for drupal.
Is there any way to just connect with my facebook account without creating a new one on the drupal site.
Regardz,
Mladjo
RPX works the same way.
I believe you would have to modify the code to grab the returned data from Facebook and simulate a user creation with user_save, then automatically log them in, bypassing the Drupal login. Drupal needs a way of tracking that user on the site which is why that occurs.
I don't think the modules are quite there yet, though. Thanks for pointing that out, because I will have to come up with something like this.

Resources