Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8542441
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T12:04:21+00:00 2026-06-11T12:04:21+00:00

Im just using the graph.facebook.com code to display photos from an album but i

  • 0

Im just using the graph.facebook.com code to display photos from an album but i want the user to be able to paste the URL from their album and then using a php regular expression or javascript i would like to remove everything but the album id so i can display the photos.

If a user pastes this to their users MYSQL table:

https://www.facebook.com/media/set/?set=a.10152107362775359.906732.14226545341&type=3

What would be the best way to retrieve only the numbers after a. and before where the next . starts.

basically i need this: 10152107362775359

I know i can get everything that set=

$notclean = 'a.10152107362775359.906732.14226545341';

but now how do i make

$notclean = '10152107362775359';

Thanks in advance 🙂
Jonny

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T12:04:23+00:00Added an answer on June 11, 2026 at 12:04 pm

    Use the explode() function:

    $str = 'a.10152107362775359.906732.14226545341';
    $arr = explode(".",$str);
    $notclean = $arr[1];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using the following code to retrieve a user's friends: $fql_query_url = 'https://graph.facebook.com/fql?q=SELECT+uid,+name,+pic_square+FROM+user+WHERE+uid+IN+(SELECT+uid2+FROM+friend+WHERE+uid1+=+me())+order+by+name&access_token=' .
Hi I just define my custom action on facebook using open graph. After creating
using the script code below, this returns the images from facebook vertically. ive removed
I am using graph api to retrieve my friend list. https://graph.facebook.com/me/friends?access_token= I noticed it
I'm tring to get an album picture from facebook using the facebook C# SDK
I'm just doing a simple graph using Open Flash Chart http://teethgrinder.co.uk/open-flash-chart/ which shows the
I've just started developing a small C++ program using GraphViz's graph library and noticed
I am trying to load images from the Facebook graph api into a div
I'm using the Graph Api on PHP to fetch the albums for an user.
For users on Facebook, I gather information like their user ID by using this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.